From 568f49c784ca1684d062df135928e6aca0e68fc9 Mon Sep 17 00:00:00 2001 From: maud-buchwalter Date: Tue, 3 Nov 2026 15:02:38 +0100 Subject: [PATCH] [FIX] account_move_last_payment fix pre-commit --- account_move_last_payment/README.md | 4 ++-- account_move_last_payment/models/account_move.py | 4 ++-- account_move_last_payment/pyproject.toml | 3 +++ account_move_last_payment/tests/test_last_payment.py | 2 +- account_move_last_payment/views/account_move_views.xml | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 account_move_last_payment/pyproject.toml diff --git a/account_move_last_payment/README.md b/account_move_last_payment/README.md index 4a0e951..55e94c8 100644 --- a/account_move_last_payment/README.md +++ b/account_move_last_payment/README.md @@ -1,7 +1,7 @@ # Account Move Last Payment -Expose on `account.move` the date of the most recent real payment reconciled -with an invoice, as a stored, exportable field shown in the invoice list view. +Expose on `account.move` the date of the most recent real payment reconciled with an +invoice, as a stored, exportable field shown in the invoice list view. ## Features diff --git a/account_move_last_payment/models/account_move.py b/account_move_last_payment/models/account_move.py index 0369e90..fe2c2d2 100644 --- a/account_move_last_payment/models/account_move.py +++ b/account_move_last_payment/models/account_move.py @@ -15,7 +15,7 @@ class AccountMove(models.Model): "invoice, whatever the reconciliation path (explicit payment " "or direct bank statement line reconciliation).", ) - + preferred_payment_method_line_id = fields.Many2one(string="Planned Payment Method") @api.depends( @@ -68,4 +68,4 @@ class AccountMove(models.Model): dates.append(payment.date) elif counterpart_line.move_id.statement_line_id: dates.append(counterpart_line.move_id.date) - return dates \ No newline at end of file + return dates diff --git a/account_move_last_payment/pyproject.toml b/account_move_last_payment/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/account_move_last_payment/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_move_last_payment/tests/test_last_payment.py b/account_move_last_payment/tests/test_last_payment.py index b94282e..1a85abe 100644 --- a/account_move_last_payment/tests/test_last_payment.py +++ b/account_move_last_payment/tests/test_last_payment.py @@ -230,4 +230,4 @@ class TestAccountMoveLastPayment(AccountTestInvoicingCommon): entry.action_post() self.assertFalse(refund.last_payment_date) self.assertFalse(entry.last_payment_date) - self.assertTrue(invoice.last_payment_date) \ No newline at end of file + self.assertTrue(invoice.last_payment_date) diff --git a/account_move_last_payment/views/account_move_views.xml b/account_move_last_payment/views/account_move_views.xml index ecb9f46..98037c9 100644 --- a/account_move_last_payment/views/account_move_views.xml +++ b/account_move_last_payment/views/account_move_views.xml @@ -10,4 +10,4 @@ - \ No newline at end of file +