Compare commits
1 Commits
54bb9f0788
...
18.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 568f49c784 |
@@ -1,7 +1,7 @@
|
|||||||
# Account Move Last Payment
|
# Account Move Last Payment
|
||||||
|
|
||||||
Expose on `account.move` the date of the most recent real payment reconciled
|
Expose on `account.move` the date of the most recent real payment reconciled with an
|
||||||
with an invoice, as a stored, exportable field shown in the invoice list view.
|
invoice, as a stored, exportable field shown in the invoice list view.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class AccountMove(models.Model):
|
|||||||
"invoice, whatever the reconciliation path (explicit payment "
|
"invoice, whatever the reconciliation path (explicit payment "
|
||||||
"or direct bank statement line reconciliation).",
|
"or direct bank statement line reconciliation).",
|
||||||
)
|
)
|
||||||
|
|
||||||
preferred_payment_method_line_id = fields.Many2one(string="Planned Payment Method")
|
preferred_payment_method_line_id = fields.Many2one(string="Planned Payment Method")
|
||||||
|
|
||||||
@api.depends(
|
@api.depends(
|
||||||
@@ -68,4 +68,4 @@ class AccountMove(models.Model):
|
|||||||
dates.append(payment.date)
|
dates.append(payment.date)
|
||||||
elif counterpart_line.move_id.statement_line_id:
|
elif counterpart_line.move_id.statement_line_id:
|
||||||
dates.append(counterpart_line.move_id.date)
|
dates.append(counterpart_line.move_id.date)
|
||||||
return dates
|
return dates
|
||||||
|
|||||||
3
account_move_last_payment/pyproject.toml
Normal file
3
account_move_last_payment/pyproject.toml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["whool"]
|
||||||
|
build-backend = "whool.buildapi"
|
||||||
@@ -230,4 +230,4 @@ class TestAccountMoveLastPayment(AccountTestInvoicingCommon):
|
|||||||
entry.action_post()
|
entry.action_post()
|
||||||
self.assertFalse(refund.last_payment_date)
|
self.assertFalse(refund.last_payment_date)
|
||||||
self.assertFalse(entry.last_payment_date)
|
self.assertFalse(entry.last_payment_date)
|
||||||
self.assertTrue(invoice.last_payment_date)
|
self.assertTrue(invoice.last_payment_date)
|
||||||
|
|||||||
@@ -10,4 +10,4 @@
|
|||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user