[IMP] l10n_ec: Add and fix tax group accounts to automate tax closing…

… entry

- These new accounts are to automate the tax closing entry on 103 and 104 reports.
- The tax names of account 11050201 is changed to a better accounting standard name for the understanding of the accounting accounts to be configured in the tax groups, based on the name of the new account group created.
- Accounts payable and receivable are added for each of the tax groups, by company. It's not set in chart template property accounts, because they are different accounts for each tax group. For this reason, the accounts are set in load chart template method.
- Add irbpnr tax group account
- Add Exchange Outflows accounts and fix ec translation for exchange outflows account
- Filter companies with EC chart template set

We needed to adapt to saas-16.2

closes odoo/odoo#132050

X-original-commit: f7b2ff2028490fd1cf97f8fa1bc5e7103fefaa34
Signed-off-by: Josse Colpaert <jco@odoo.com>
This commit is contained in:
Josse Colpaert
2023-08-16 19:04:35 +02:00
committed by Antoine Dupuis (andu)
parent 1fb4d356b5
commit f20caf3add
3 changed files with 29 additions and 18 deletions
@@ -36,7 +36,11 @@
"ec_purchase_vat_assets_imports","11050105","VAT paid on import of fixed assets","False","asset_current","IVA pagado en importacion de activos fijos"
"ec_sale_vat_outstanding_withholds","11050106","VAT paid on withholdings at source","False","asset_current","IVA pagado en retenciones de la fuente"
"ec_purchase_vat_zero","11050107","VAT on purchases 0%","False","asset_current","IVA en compras 0%"
"ec110502","110502","Tax credit in favor of the company (i.r.)","False","asset_current","Credito tributario a favor de la empresa(i.r.)"
"ec_profit_tax_credit","11050201","Tributary credit for income tax","False","asset_current","Crédito tributario por Impuesto a la Renta"
"ec_vat_tax_credit","11050202","VAT income tax","False","asset_current","Crédito tributario de IVA"
"ec_withhold_tax_credit","11050203","Income tax for withhold VAT","False","asset_current","Crédito tributario por Retenciones IVA"
"ec_isd_tax_credit","11050204","Income tax for ISD VAT","False","asset_current","Crédito tributario por impuesto ISD"
"ec_others_tax_credit","11050205","Income tax for other concepts","False","asset_current","Credito Tributario por otros conceptos"
"ec110503","110503","Income tax advance","False","asset_current","Anticipo de impuesto a la renta"
"ec_sale_profit_withhold","110504","Withholding taxes paid","False","asset_current","Retenciones en la fuente pagadas"
"ec1106","1106","Non-current assets held for sale and discontinued operations","False","asset_current","Activos no corrientes mantenidos para la venta y operaciones discontinuadas"
@@ -114,6 +118,11 @@
"ec210502","210502","Provisions from abroad","True","liability_current","Provisiones del exterior"
"ec2106","2106","Current portion of bonds issued","False","liability_current","Porcion corriente de obligaciones emitidas"
"ec21070101","21070101","Income tax withheld from employees","True","liability_current","Impuesto a la renta retenido a empleados"
"ec_vat_tax_deduction","21070102","Tax payable VAT","True","liability_current","Impuesto por pagar IVA"
"ec_profit_tax_deduction","21070103","Withholding payable taxes","True","liability_current","Retenciones en la fuente por pagar"
"ec_ice_tax_deduction","21070104","Tax payable ICE","True","liability_current","Impuesto por pagar ICE"
"ec_irbpnr_tax_deduction","21070105","IRBPNR tax payable","True","liability_current","Impuesto IRBPNR por pagar"
"ec_others_tax_deduction","21070106","Other taxes payable","True","liability_current","Otros impuestos por pagar"
"ec210702","210702","Income tax payable for the year","True","liability_payable","Impuesto a la renta por pagar del ejercicio"
"ec21070301","21070301","Unsecured loans","True","liability_current","Prestamos quirografarios"
"ec21070302","21070302","Mortgage loans","True","liability_current","Prestamos hipotecarios"
@@ -399,7 +408,8 @@
"ec52022002","52022002","1.5x thousand total assets","False","expense","1.5x mil activos totales"
"ec52022003","52022003","Contributions","False","expense","Contribuciones super cias"
"ec52022004","52022004","Chamber of Commerce","False","expense","Camara de comercio"
"ec52022005","52022005","Other taxes","False","expense","Mantenimiento equipo computo"
"ec52022005","52022005","Currency Outflow Tax (ISD)","False","expense","Impuesto Salida de Divisas (ISD)"
"ec52022006","52022006","Other taxes","False","expense","Otros impuestos"
"ec5202210101","5202210101","Buildings","False","expense_depreciation","Edificios"
"ec5202210102","5202210102","Construction in progress","False","expense_depreciation","Contrucciones en curso"
"ec5202210103","5202210103","Facilities","False","expense_depreciation","Instalaciones"
@@ -455,7 +465,7 @@
"ec5202281804","5202281804","Technical support","False","expense","Gnd soporte tecnico"
"ec5202281805","5202281805","Non-deductible mobilization","False","expense","Gnd movilización no deducible"
"ec5202281806","5202281806","Taxes, interest and penalties","False","expense","Gnd impuestos, intereses y multas"
"ec5202281807","5202281807","Currency outflows","False","expense","Gnd salidas de divisas"
"ec5202281807","5202281807","Gnd Foreign Currency Outflow Tax (ISD)","False","expense","Gnd Impuesto Salida de Divisas (ISD)"
"ec5202281808","5202281808","Other non-deductible expenses","False","expense","Gnd otros gastos no deducibles"
"ec520301","520301","Interests","False","expense","Intereses"
"ec520302","520302","Commissions","False","expense","Comisiones"
1 id code name reconcile account_type name@es
36 ec_purchase_vat_assets_imports 11050105 VAT paid on import of fixed assets False asset_current IVA pagado en importacion de activos fijos
37 ec_sale_vat_outstanding_withholds 11050106 VAT paid on withholdings at source False asset_current IVA pagado en retenciones de la fuente
38 ec_purchase_vat_zero 11050107 VAT on purchases 0% False asset_current IVA en compras 0%
39 ec110502 ec_profit_tax_credit 110502 11050201 Tax credit in favor of the company (i.r.) Tributary credit for income tax False asset_current Credito tributario a favor de la empresa(i.r.) Crédito tributario por Impuesto a la Renta
40 ec_vat_tax_credit 11050202 VAT income tax False asset_current Crédito tributario de IVA
41 ec_withhold_tax_credit 11050203 Income tax for withhold VAT False asset_current Crédito tributario por Retenciones IVA
42 ec_isd_tax_credit 11050204 Income tax for ISD VAT False asset_current Crédito tributario por impuesto ISD
43 ec_others_tax_credit 11050205 Income tax for other concepts False asset_current Credito Tributario por otros conceptos
44 ec110503 110503 Income tax advance False asset_current Anticipo de impuesto a la renta
45 ec_sale_profit_withhold 110504 Withholding taxes paid False asset_current Retenciones en la fuente pagadas
46 ec1106 1106 Non-current assets held for sale and discontinued operations False asset_current Activos no corrientes mantenidos para la venta y operaciones discontinuadas
118 ec210502 210502 Provisions from abroad True liability_current Provisiones del exterior
119 ec2106 2106 Current portion of bonds issued False liability_current Porcion corriente de obligaciones emitidas
120 ec21070101 21070101 Income tax withheld from employees True liability_current Impuesto a la renta retenido a empleados
121 ec_vat_tax_deduction 21070102 Tax payable VAT True liability_current Impuesto por pagar IVA
122 ec_profit_tax_deduction 21070103 Withholding payable taxes True liability_current Retenciones en la fuente por pagar
123 ec_ice_tax_deduction 21070104 Tax payable ICE True liability_current Impuesto por pagar ICE
124 ec_irbpnr_tax_deduction 21070105 IRBPNR tax payable True liability_current Impuesto IRBPNR por pagar
125 ec_others_tax_deduction 21070106 Other taxes payable True liability_current Otros impuestos por pagar
126 ec210702 210702 Income tax payable for the year True liability_payable Impuesto a la renta por pagar del ejercicio
127 ec21070301 21070301 Unsecured loans True liability_current Prestamos quirografarios
128 ec21070302 21070302 Mortgage loans True liability_current Prestamos hipotecarios
408 ec52022002 52022002 1.5x thousand total assets False expense 1.5x mil activos totales
409 ec52022003 52022003 Contributions False expense Contribuciones super cias
410 ec52022004 52022004 Chamber of Commerce False expense Camara de comercio
411 ec52022005 52022005 Other taxes Currency Outflow Tax (ISD) False expense Mantenimiento equipo computo Impuesto Salida de Divisas (ISD)
412 ec52022006 52022006 Other taxes False expense Otros impuestos
413 ec5202210101 5202210101 Buildings False expense_depreciation Edificios
414 ec5202210102 5202210102 Construction in progress False expense_depreciation Contrucciones en curso
415 ec5202210103 5202210103 Facilities False expense_depreciation Instalaciones
465 ec5202281804 5202281804 Technical support False expense Gnd soporte tecnico
466 ec5202281805 5202281805 Non-deductible mobilization False expense Gnd movilización no deducible
467 ec5202281806 5202281806 Taxes, interest and penalties False expense Gnd impuestos, intereses y multas
468 ec5202281807 5202281807 Currency outflows Gnd Foreign Currency Outflow Tax (ISD) False expense Gnd salidas de divisas Gnd Impuesto Salida de Divisas (ISD)
469 ec5202281808 5202281808 Other non-deductible expenses False expense Gnd otros gastos no deducibles
470 ec520301 520301 Interests False expense Intereses
471 ec520302 520302 Commissions False expense Comisiones
@@ -16,6 +16,7 @@
"ec110404","110404","Other advances delivered","ec1104","Otros anticipos entregados"
"ec1105","1105","Current tax assets","ec11","Activos por impuestos corrientes"
"ec110501","110501","Tax credit in favor of the company (vat)","ec1105","Credito tributario a favor de la empresa(IVA)"
"ec110502","110502","Tax credit of the company","ec1105","Crédito Tributario de la Empresa"
"ec12","12","Non-current assets","ec1","Activo no corriente"
"ec1201","1201","Property, plant and equipment","ec12","Propiedades, planta y equipo"
"ec120112","120112","Accumulated depreciation property, plant and equipment","ec1201","Depreciacion acumulada propiedades, planta y equipo"
1 id code_prefix_start name parent_id name@es
16 ec110404 110404 Other advances delivered ec1104 Otros anticipos entregados
17 ec1105 1105 Current tax assets ec11 Activos por impuestos corrientes
18 ec110501 110501 Tax credit in favor of the company (vat) ec1105 Credito tributario a favor de la empresa(IVA)
19 ec110502 110502 Tax credit of the company ec1105 Crédito Tributario de la Empresa
20 ec12 12 Non-current assets ec1 Activo no corriente
21 ec1201 1201 Property, plant and equipment ec12 Propiedades, planta y equipo
22 ec120112 120112 Accumulated depreciation property, plant and equipment ec1201 Depreciacion acumulada propiedades, planta y equipo
@@ -1,15 +1,15 @@
"id","name","l10n_ec_type","sequence","country_id","name@es"
"tax_group_vat_08","VAT 8%","vat08","5","base.ec","IVA 8%"
"tax_group_vat_12","VAT 12%","vat12","10","base.ec","IVA 12%"
"tax_group_vat14","VAT 14%","vat14","20","base.ec","IVA 14%"
"tax_group_vat0","VAT 0%","zero_vat","30","base.ec","IVA 0%"
"tax_group_vat_not_charged","VAT Not Charged","not_charged_vat","40","base.ec","IVA no cobrado"
"tax_group_vat_exempt","VAT Exempt","exempt_vat","50","base.ec","Exento de IVA"
"tax_group_ice","Special Consumptions (ICE)","ice","60","base.ec","Consumos Especiales (ICE)"
"tax_group_irbpnr","Plastic Bottles (IRBPNR)","irbpnr","70","base.ec","Botellas de plástico (IRBPNR)"
"tax_group_withhold_vat_sale","VAT Withhold on Sales","withhold_vat_sale","80","base.ec","Retención IVA en Ventas"
"tax_group_withhold_vat_purchase","VAT Withhold on Purchases","withhold_vat_purchase","80","base.ec","Retención IVA en Compras"
"tax_group_withhold_income_sale","Profit Withhold on Sales","withhold_income_sale","90","base.ec","Retención Renta en Ventas"
"tax_group_withhold_income_purchase","Profit Withhold on Purchases","withhold_income_purchase","95","base.ec","Retención Renta en Compras"
"tax_group_outflows","Exchange Outflows","outflows_tax","100","base.ec","Salidas por cambio"
"tax_group_others","Others","other","110","base.ec","Otros"
"id","name","l10n_ec_type","sequence","country_id","tax_payable_account_id","tax_receivable_account_id","name@es"
"tax_group_ice","Special Consumptions (ICE)","ice","60","base.ec","ec_ice_tax_deduction","ec_ice_tax_deduction","Consumos Especiales (ICE)"
"tax_group_vat_08","VAT 8%","vat08","5","base.ec","ec_vat_tax_deduction","ec_vat_tax_credit","IVA 8%"
"tax_group_vat_12","VAT 12%","vat12","10","base.ec","ec_vat_tax_deduction","ec_vat_tax_credit","IVA 12%"
"tax_group_vat14","VAT 14%","vat14","20","base.ec","ec_vat_tax_deduction","ec_vat_tax_credit","IVA 14%"
"tax_group_vat0","VAT 0%","zero_vat","30","base.ec","ec_vat_tax_deduction","ec_vat_tax_credit","IVA 0%"
"tax_group_vat_not_charged","Non-Subject VAT","not_charged_vat","40","base.ec","ec_vat_tax_deduction","ec_vat_tax_credit","IVA no cobrado"
"tax_group_vat_exempt","Exempt VAT","exempt_vat","50","base.ec","ec_vat_tax_deduction","ec_vat_tax_credit","Exento de IVA"
"tax_group_irbpnr","Plastic Bottles (IRBPNR)","irbpnr","70","base.ec","ec_irbpnr_tax_deduction","ec_irbpnr_tax_deduction","Botellas de plástico (IRBPNR)"
"tax_group_withhold_vat_sale","Sales Withholding VAT","withhold_vat_sale","80","base.ec","ec_vat_tax_deduction","ec_withhold_tax_credit","Retención IVA en Ventas"
"tax_group_withhold_vat_purchase","Purchase Withholding VAT","withhold_vat_purchase","80","base.ec","ec_vat_tax_deduction","ec_withhold_tax_credit","Retención IVA en Compras"
"tax_group_withhold_income_sale","Sale Profit Withhold","withhold_income_sale","90","base.ec","ec_profit_tax_deduction","ec_profit_tax_credit","Retención Renta en Ventas"
"tax_group_withhold_income_purchase","Purchase Profit Withhold","withhold_income_purchase","95","base.ec","ec_profit_tax_deduction","ec_profit_tax_credit"
"tax_group_outflows","Exchange Outflows","outflows_tax","100","base.ec","ec_others_tax_deduction","ec_others_tax_credit","Salidas por cambio"
"tax_group_others","Others","other","110","base.ec","ec_others_tax_deduction","ec_others_tax_credit","Otros"
1 id name l10n_ec_type sequence country_id tax_payable_account_id tax_receivable_account_id name@es
2 tax_group_vat_08 tax_group_ice VAT 8% Special Consumptions (ICE) vat08 ice 5 60 base.ec ec_ice_tax_deduction ec_ice_tax_deduction IVA 8% Consumos Especiales (ICE)
3 tax_group_vat_12 tax_group_vat_08 VAT 12% VAT 8% vat12 vat08 10 5 base.ec ec_vat_tax_deduction ec_vat_tax_credit IVA 12% IVA 8%
4 tax_group_vat14 tax_group_vat_12 VAT 14% VAT 12% vat14 vat12 20 10 base.ec ec_vat_tax_deduction ec_vat_tax_credit IVA 14% IVA 12%
5 tax_group_vat0 tax_group_vat14 VAT 0% VAT 14% zero_vat vat14 30 20 base.ec ec_vat_tax_deduction ec_vat_tax_credit IVA 0% IVA 14%
6 tax_group_vat_not_charged tax_group_vat0 VAT Not Charged VAT 0% not_charged_vat zero_vat 40 30 base.ec ec_vat_tax_deduction ec_vat_tax_credit IVA no cobrado IVA 0%
7 tax_group_vat_exempt tax_group_vat_not_charged VAT Exempt Non-Subject VAT exempt_vat not_charged_vat 50 40 base.ec ec_vat_tax_deduction ec_vat_tax_credit Exento de IVA IVA no cobrado
8 tax_group_ice tax_group_vat_exempt Special Consumptions (ICE) Exempt VAT ice exempt_vat 60 50 base.ec ec_vat_tax_deduction ec_vat_tax_credit Consumos Especiales (ICE) Exento de IVA
9 tax_group_irbpnr Plastic Bottles (IRBPNR) irbpnr 70 base.ec ec_irbpnr_tax_deduction ec_irbpnr_tax_deduction Botellas de plástico (IRBPNR)
10 tax_group_withhold_vat_sale VAT Withhold on Sales Sales Withholding VAT withhold_vat_sale 80 base.ec ec_vat_tax_deduction ec_withhold_tax_credit Retención IVA en Ventas
11 tax_group_withhold_vat_purchase VAT Withhold on Purchases Purchase Withholding VAT withhold_vat_purchase 80 base.ec ec_vat_tax_deduction ec_withhold_tax_credit Retención IVA en Compras
12 tax_group_withhold_income_sale Profit Withhold on Sales Sale Profit Withhold withhold_income_sale 90 base.ec ec_profit_tax_deduction ec_profit_tax_credit Retención Renta en Ventas
13 tax_group_withhold_income_purchase Profit Withhold on Purchases Purchase Profit Withhold withhold_income_purchase 95 base.ec ec_profit_tax_deduction ec_profit_tax_credit
14 tax_group_outflows Exchange Outflows outflows_tax 100 base.ec ec_others_tax_deduction ec_others_tax_credit Salidas por cambio
15 tax_group_others Others other 110 base.ec ec_others_tax_deduction ec_others_tax_credit Otros