diff options
| author | oco-odoo <oco@odoo.com> | 2020-01-16 18:04:26 +0000 |
|---|---|---|
| committer | oco-odoo <oco@odoo.com> | 2020-01-16 18:04:26 +0000 |
| commit | 8e4158af810bcf475214946fa64d3b0ce4d3b26d (patch) | |
| tree | bee0b38b9179a025c0f23d2ed1b445a647bbf986 /addons/account/report | |
| parent | 1a7c21328f551ee0ec904606209d642a84071446 (diff) | |
[IMP] account: add 'partial' and 'reversed' payment states to invoices
- 'partial' payment state corresponds to invoices whose payable/receivable move line has been partially reconciled with some other line.
- 'reversed' payment state corresponds to entries that have been cancelled by the creation of a single reverse entry (using the dedicated button on the form view). This state can be set on invoice as well as on regular entries.
=> To stay consistent with the naming conventions, this commit also renames invoice_payment_state field to payment_state, since it's no longer only applicable on invoices.
closes odoo/odoo#41723
Related: odoo/enterprise#7202
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/account/report')
| -rw-r--r-- | addons/account/report/account_invoice_report.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py index 1a4f443b91f..e9e960872fd 100644 --- a/addons/account/report/account_invoice_report.py +++ b/addons/account/report/account_invoice_report.py @@ -32,7 +32,7 @@ class AccountInvoiceReport(models.Model): ('posted', 'Open'), ('cancel', 'Cancelled') ], string='Invoice Status', readonly=True) - invoice_payment_state = fields.Selection(selection=[ + payment_state = fields.Selection(selection=[ ('not_paid', 'Not Paid'), ('in_payment', 'In Payment'), ('paid', 'paid') @@ -92,7 +92,7 @@ class AccountInvoiceReport(models.Model): move.partner_id, move.invoice_user_id, move.fiscal_position_id, - move.invoice_payment_state, + move.payment_state, move.invoice_date, move.invoice_date_due, move.invoice_payment_term_id, @@ -154,7 +154,7 @@ class AccountInvoiceReport(models.Model): move.partner_id, move.invoice_user_id, move.fiscal_position_id, - move.invoice_payment_state, + move.payment_state, move.invoice_date, move.invoice_date_due, move.invoice_payment_term_id, |
