Revert commit 613c590962
The concepte it's not completly correct: """ In taxes by invoice report, filter the invoices and credit note from invoice related, not from invoice tax. To ensure the information showed is related the global invoice amount not the specfic tax. """ Is better to group bu the invoice tax.
This commit is contained in:
parent
70d1505efd
commit
4b9e3c77bc
|
@ -277,9 +277,9 @@ class TaxesByInvoiceReport(HTMLReport):
|
|||
domain += [('invoice.party', 'in', parties)],
|
||||
|
||||
if data['tax_type'] == 'invoiced':
|
||||
domain += [('invoice.untaxed_amount', '>=', 0)]
|
||||
domain += [('base', '>=', 0)]
|
||||
elif data['tax_type'] == 'refunded':
|
||||
domain += [('invoice.untaxed_amount', '<', 0)]
|
||||
domain += [('base', '<', 0)]
|
||||
|
||||
if data['taxes']:
|
||||
domain += [('tax', 'in', data.get('taxes', []))]
|
||||
|
|
Loading…
Reference in New Issue