Skip to content

Commit

Permalink
[IMP] l10n_pe: enhance tax group and taxes for free billing support
Browse files Browse the repository at this point in the history
This commit enhances the tax group template in `account.tax.group.pe.csv`
and he tax template in `account.tax.pe.csv` to support the free billin
functionality by adding a dummy tax group. The related logic is
implemented in the enterprise module.

Related Enterprise PR: odoo/enterprise#56767

closes odoo#174131

Related: odoo/enterprise#56767
Signed-off-by: Josse Colpaert (jco) <[email protected]>
  • Loading branch information
desdelinux committed Nov 8, 2024
1 parent 87d8f74 commit 5812457
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 62 deletions.
135 changes: 74 additions & 61 deletions addons/l10n_pe/data/template/account.tax-pe.csv
Original file line number Diff line number Diff line change
@@ -1,61 +1,74 @@
"id","name","description","invoice_label","l10n_pe_edi_tax_code","l10n_pe_edi_unece_category","amount","type_tax_use","sequence","include_base_amount","tax_group_id","price_include","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/account_id","repartition_line_ids/factor_percent","description"@es
"sale_tax_igv_18","18%","","IGV 18%","1000","S","18.0","sale","1","1","tax_group_igv","","base","invoice","","","18%"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_igv_18_included","18% TTC","","IGV 18%","1000","S","18.0","sale","1","1","tax_group_igv","True","base","invoice","","","18% (Incluido en precio)"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_exo","0% Exo","","EXO 0%","9997","E","0.0","sale","1","","tax_group_exo","","base","invoice","","","0% Exonerado"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_ina","0% Una","","INA 0%","9998","Z","0.0","sale","1","","tax_group_ina","","base","invoice","","","0% Inafectado"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_gra","0%","","GRA 0%","9996","E","0.0","sale","1","","tax_group_gra","","base","invoice","","","0% Gratis"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_ics_0","0% ISC","","ISC 0%","2000","S","0.0","sale","1","1","tax_group_isc","","base","invoice","","100",""
"","","","","","","","","","","","","tax","invoice","chart4012","100",""
"","","","","","","","","","","","","base","refund","","100",""
"","","","","","","","","","","","","tax","refund","chart4012","100",""
"purchase_tax_igv_18","18%","","IGV 18%","1000","S","18.0","purchase","1","1","tax_group_igv","","base","invoice","","","18%"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"purchase_tax_igv_18_included","18% TTC","","IGV 18%","1000","S","18.0","purchase","1","1","tax_group_igv","True","base","invoice","","","18% (Incluido en precio)"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"purchase_tax_igv_18g_ng","18% Levied and Not Taxed","","IGV 18%","1000","S","18.0","purchase","1","1","tax_group_igv_g_ng","True","base","invoice","","","18% Gravadas y No Gravada"
"","","","","","","","","","","","","tax","invoice","chart40117","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40117","",""
"purchase_tax_igv_18_ng","18% Not Levied","","IGV NG 18%","1000","S","18.0","purchase","1","1","tax_group_igv_ng","True","base","invoice","","","18% No Gravadas"
"","","","","","","","","","","","","tax","invoice","chart40116","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40116","",""
"purchase_tax_exp_0","0% EXP","","EXP 0%","9995","S","0.0","purchase","1","1","tax_group_exp","True","base","invoice","","","0% EXP"
"","","","","","","","","","","","","tax","invoice","chart40115","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40115","",""
"purchase_tax_exo","0% Exo","","EXO 0%","9997","E","0.0","purchase","1","","tax_group_exo","","base","invoice","","","0% Exonerado"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"purchase_tax_ina","0% Una","","INA 0%","9998","Z","0.0","purchase","1","","tax_group_ina","","base","invoice","","","0% Inafectado"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"purchase_tax_gra","0%","","GRA 0%","9996","E","0.0","purchase","1","","tax_group_gra","","base","invoice","","","0% Gratis"
"","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_exp","0% EXP","","EXP 0%","9995","S","0.0","sale","1","1","tax_group_exp","","base","invoice","","0","0% EXP"
"","","","","","","","","","","","","tax","invoice","chart40111","0",""
"","","","","","","","","","","","","base","refund","","0",""
"","","","","","","","","","","","","tax","refund","chart40111","0",""
"id","name","description","invoice_label","l10n_pe_edi_tax_code","l10n_pe_edi_unece_category","amount","amount_type","children_tax_ids","type_tax_use","sequence","include_base_amount","tax_group_id","price_include","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/account_id","repartition_line_ids/factor_percent","description@es"
"sale_tax_igv_18","18%","","IGV 18%","1000","S","18.0","percent","","sale","1","1","tax_group_igv","","base","invoice","","","18%"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_igv_18_included","18% TTC","","IGV 18%","1000","S","18.0","percent","","sale","1","1","tax_group_igv","True","base","invoice","","","18% (Incluido en precio)"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_exo","0% Exo","","EXO 0%","9997","E","0.0","percent","","sale","1","","tax_group_exo","","base","invoice","","","0% Exonerado"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_ina","0% Una","","INA 0%","9998","Z","0.0","percent","","sale","1","","tax_group_ina","","base","invoice","","","0% Inafectado"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_gra","0%","","GRA 0%","9996","E","0.0","percent","","sale","1","","tax_group_gra","","base","invoice","","","0% Gratis"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_ics_0","0% ISC","","ISC 0%","2000","S","0.0","percent","","sale","1","1","tax_group_isc","","base","invoice","","100",""
"","","","","","","","","","","","","","","tax","invoice","chart4012","100",""
"","","","","","","","","","","","","","","base","refund","","100",""
"","","","","","","","","","","","","","","tax","refund","chart4012","100",""
"purchase_tax_igv_18","18%","","IGV 18%","1000","S","18.0","percent","","purchase","1","1","tax_group_igv","","base","invoice","","","18%"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"purchase_tax_igv_18_included","18% TTC","","IGV 18%","1000","S","18.0","percent","","purchase","1","1","tax_group_igv","True","base","invoice","","","18% (Incluido en precio)"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"purchase_tax_igv_18g_ng","18% Levied and Not Taxed","","IGV 18%","1000","S","18.0","percent","","purchase","1","1","tax_group_igv_g_ng","True","base","invoice","","","18% Gravadas y No Gravada"
"","","","","","","","","","","","","","","tax","invoice","chart40117","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40117","",""
"purchase_tax_igv_18_ng","18% Not Levied","","IGV NG 18%","1000","S","18.0","percent","","purchase","1","1","tax_group_igv_ng","True","base","invoice","","","18% No Gravadas"
"","","","","","","","","","","","","","","tax","invoice","chart40116","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40116","",""
"purchase_tax_exp_0","0% EXP","","EXP 0%","9995","S","0.0","percent","","purchase","1","1","tax_group_exp","True","base","invoice","","","0% EXP"
"","","","","","","","","","","","","","","tax","invoice","chart40115","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40115","",""
"purchase_tax_exo","0% Exo","","EXO 0%","9997","E","0.0","percent","","purchase","1","","tax_group_exo","","base","invoice","","","0% Exonerado"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"purchase_tax_ina","0% Una","","INA 0%","9998","Z","0.0","percent","","purchase","1","","tax_group_ina","","base","invoice","","","0% Inafectado"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"purchase_tax_gra","0%","","GRA 0%","9996","E","0.0","percent","","purchase","1","","tax_group_gra","","base","invoice","","","0% Gratis"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"sale_tax_exp","0% EXP","","EXP 0%","9995","S","0.0","percent","","sale","1","1","tax_group_exp","","base","invoice","","0","0% EXP"
"","","","","","","","","","","","","","","tax","invoice","chart40111","0",""
"","","","","","","","","","","","","","","base","refund","","0",""
"","","","","","","","","","","","","","","tax","refund","chart40111","0",""
"tax_free_subtract_base","Subtract Base","","","","","-100","percent","","none","1","","tax_group_free_invoice","","base","invoice","","","Substraer base"
"","","","","","","","","","","","","","","tax","invoice","","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","","",""
"tax_free_igv_18","18% Free","","","9996","E","18","percent","","none","1","","tax_group_gra","","base","invoice","","","18% Libre de Impuestos"
"","","","","","","","","","","","","","","tax","invoice","chart40111","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart40111","",""
"tax_free_igv_18_expense","-18% Free Expense Tax","","","","","-18","percent","","none","1","","tax_group_free_invoice","","base","invoice","","","-18% Libre de Impuestos Gasto"
"","","","","","","","","","","","","","","tax","invoice","chart6411","",""
"","","","","","","","","","","","","","","base","refund","","",""
"","","","","","","","","","","","","","","tax","refund","chart6411","",""
"tax_free_group","18% Free Final","","","9996","","","group","tax_free_igv_18,tax_free_subtract_base,tax_free_igv_18_expense","sale","1","","tax_group_igv","","","","","","18% Libre Final"
3 changes: 2 additions & 1 deletion addons/l10n_pe/data/template/account.tax.group-pe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
"tax_group_other","OTHERS","0","base.pe","OTROS"
"tax_group_det","DET","100","base.pe","DET"
"tax_group_icbper","ICBPER","0","base.pe",""
"tax_group_ret","RET","100","base.pe","RET"
"tax_group_ret","RET","100","base.pe","RET"
"tax_group_free_invoice","Free Invoice","200","base.pe","Factura Gratuita"

0 comments on commit 5812457

Please sign in to comment.