[FIX] l10n_mx: fix refund column in DIOT report

# Steps to reproduce
- install l10n_mx_reports
- switch to a mexican company
- create a Vendor Bill, confirm it and register a payment for it
- create a Credit Note for that bill, confirm it and register a payment
  too
- go to the DIOT report (called `Transactions with third parties
  [ DIOT ]` in the menu )

The amount in the column "Refunds" should be the tax amount, and not the
base amount.

opw-3107102

Enterprise PR: odoo/enterprise#39628

closes odoo/odoo#118887

X-original-commit: 8c9cde34ac1fb74a42997b0a1d847ae1c9bb1312
Related: odoo/enterprise#39929
Signed-off-by: Nshimiyimana Serge Séna (sesn) <sesn@odoo.com>
This commit is contained in:
Nshimiyimana Séna
2023-04-25 02:42:05 +02:00
parent de607a7296
commit b65e7a4a10
@@ -37,16 +37,16 @@
"","","","","","","","","","","","","","tax","refund","cuenta216_10_20","-DIOT: Retención",""
"tax13","10","VAT(0%) purchases","","VAT(0%)","0.0","percent","purchase","tax_group_iva_0","on_payment","cuenta119_01","Tasa","","base","invoice","","+DIOT: 0%","IVA(0%) compras"
"","","","","","","","","","","","","","tax","invoice","cuenta118_01","",""
"","","","","","","","","","","","","","base","refund","","+DIOT: Refunds",""
"","","","","","","","","","","","","","tax","refund","cuenta118_01","",""
"","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","tax","refund","cuenta118_01","+DIOT: Refunds",""
"tax14","1","VAT(16%) purchases","","VAT(16%)","16.0","percent","purchase","tax_group_iva_16","on_payment","cuenta119_01","Tasa","","base","invoice","","+DIOT: 16%","IVA(16%) compras"
"","","","","","","","","","","","","","tax","invoice","cuenta118_01","",""
"","","","","","","","","","","","","","base","refund","","+DIOT: Refunds",""
"","","","","","","","","","","","","","tax","refund","cuenta118_01","",""
"","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","tax","refund","cuenta118_01","+DIOT: Refunds",""
"tax16","10","VAT(8%) purchases","","VAT(8%)","8.0","percent","purchase","tax_group_iva_8","on_payment","cuenta119_01","Tasa","","base","invoice","","+DIOT: 8%","IVA(8%) compras"
"","","","","","","","","","","","","","tax","invoice","cuenta118_01","",""
"","","","","","","","","","","","","","base","refund","","+DIOT: Refunds",""
"","","","","","","","","","","","","","tax","refund","cuenta118_01","",""
"","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","tax","refund","cuenta118_01","+DIOT: Refunds",""
"tax17","10","VAT(8%) sales","","VAT(8%)","8.0","percent","sale","tax_group_iva_8","on_payment","cuenta209_01","Tasa","","base","invoice","","","IVA(8%) ventas"
"","","","","","","","","","","","","","tax","invoice","cuenta208_01","l10n_mx.tag_iva",""
"","","","","","","","","","","","","","base","refund","","",""
1 id sequence name description invoice_label amount amount_type type_tax_use tax_group_id tax_exigibility cash_basis_transition_account_id l10n_mx_tax_type active repartition_line_ids/repartition_type repartition_line_ids/document_type repartition_line_ids/account_id repartition_line_ids/tag_ids name@es
37 tax refund cuenta216_10_20 -DIOT: Retención
38 tax13 10 VAT(0%) purchases VAT(0%) 0.0 percent purchase tax_group_iva_0 on_payment cuenta119_01 Tasa base invoice +DIOT: 0% IVA(0%) compras
39 tax invoice cuenta118_01
40 base refund +DIOT: Refunds
41 tax refund cuenta118_01 +DIOT: Refunds
42 tax14 1 VAT(16%) purchases VAT(16%) 16.0 percent purchase tax_group_iva_16 on_payment cuenta119_01 Tasa base invoice +DIOT: 16% IVA(16%) compras
43 tax invoice cuenta118_01
44 base refund +DIOT: Refunds
45 tax refund cuenta118_01 +DIOT: Refunds
46 tax16 10 VAT(8%) purchases VAT(8%) 8.0 percent purchase tax_group_iva_8 on_payment cuenta119_01 Tasa base invoice +DIOT: 8% IVA(8%) compras
47 tax invoice cuenta118_01
48 base refund +DIOT: Refunds
49 tax refund cuenta118_01 +DIOT: Refunds
50 tax17 10 VAT(8%) sales VAT(8%) 8.0 percent sale tax_group_iva_8 on_payment cuenta209_01 Tasa base invoice IVA(8%) ventas
51 tax invoice cuenta208_01 l10n_mx.tag_iva
52 base refund