In 6.0 or above use "cancelled" as state of invoices instead of "cancel"

Task #049812
This commit is contained in:
Juanjo Garcia 2022-03-18 10:58:48 +01:00
parent 082dad06e5
commit ea620dfa75
1 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ class TaxesByInvoiceReport(HTMLReport):
domain += [('tax', 'in', data.get('taxes', []))]
if not data['include_cancel']:
domain += [('invoice.state', '!=', 'cancel')]
domain += [('invoice.state', '!=', 'cancelled')]
records = {}
totals = {
@ -299,7 +299,7 @@ class TaxesByInvoiceReport(HTMLReport):
# If the invoice is cancelled, do not add its values to the
# totals
if data['include_cancel'] and tax.invoice.state == 'cancel':
if data['include_cancel'] and tax.invoice.state == 'cancelled':
continue
# With this we have the total for each tax (total base, total