diff --git a/addons/account_edi/models/account_edi_document.py b/addons/account_edi/models/account_edi_document.py index a06fd937c4b779..66cefd67155a5f 100644 --- a/addons/account_edi/models/account_edi_document.py +++ b/addons/account_edi/models/account_edi_document.py @@ -137,7 +137,7 @@ def _postprocess_post_edi_results(documents, edi_result): attachments_to_unlink.unlink() def _postprocess_cancel_edi_results(documents, edi_result): - invoice_ids_to_cancel = set() # Avoid duplicates + move_ids_to_cancel = set() # Avoid duplicates attachments_to_unlink = self.env['ir.attachment'] for document in documents: move = document.move_id @@ -151,10 +151,10 @@ def _postprocess_cancel_edi_results(documents, edi_result): 'blocking_level': False, }) - if move.is_invoice(include_receipts=True) and move.state == 'posted': + if move.state == 'posted': # The user requested a cancellation of the EDI and it has been approved. Then, the invoice # can be safely cancelled. - invoice_ids_to_cancel.add(move.id) + move_ids_to_cancel.add(move.id) if not old_attachment.res_model or not old_attachment.res_id: attachments_to_unlink |= old_attachment @@ -165,8 +165,8 @@ def _postprocess_cancel_edi_results(documents, edi_result): 'blocking_level': move_result.get('blocking_level', DEFAULT_BLOCKING_LEVEL) if move_result.get('error') else False, }) - if invoice_ids_to_cancel: - invoices = self.env['account.move'].browse(list(invoice_ids_to_cancel)) + if move_ids_to_cancel: + invoices = self.env['account.move'].browse(list(move_ids_to_cancel)) invoices.button_draft() invoices.button_cancel() diff --git a/addons/l10n_ec/__manifest__.py b/addons/l10n_ec/__manifest__.py index f2a4e772e6fd22..b022e5f5dc5133 100644 --- a/addons/l10n_ec/__manifest__.py +++ b/addons/l10n_ec/__manifest__.py @@ -2,7 +2,7 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. { "name": "Ecuadorian Accounting", - "version": "3.3", + "version": "3.4", "description": """ Functional ---------- @@ -32,9 +32,9 @@ * Ecuador banks * Partners: Consumidor Final, SRI, IESS, and also basic VAT validation """, - "author": "OPA CONSULTING & TRESCLOUD", + "author": "TRESCLOUD, OPA CONSULTING", "category": "Accounting/Localizations/Account Charts", - "maintainer": "OPA CONSULTING", + "maintainer": "TRESCLOUD", "website": "https://opa-consulting.com", "license": "LGPL-3", "depends": [ @@ -46,6 +46,8 @@ "l10n_latam_base", ], "data": [ + # Security + "security/ir.model.access.csv", # Chart of Accounts "data/account_chart_template_data.xml", "data/account_group_template_data.xml", @@ -65,11 +67,12 @@ # Other data "data/l10n_latam.document.type.csv", "data/l10n_ec.sri.payment.csv", + # Views + "views/root_sri_menu.xml", "views/account_tax_view.xml", "views/l10n_latam_document_type_view.xml", "views/l10n_ec_sri_payment.xml", "views/account_journal_view.xml", - "security/ir.model.access.csv", # Try loading CoA "data/account_chart_template_configure_data.xml", ], diff --git a/addons/l10n_ec/data/account.account.template.csv b/addons/l10n_ec/data/account.account.template.csv index 149abf890bfa17..c3e3ee9170be87 100644 --- a/addons/l10n_ec/data/account.account.template.csv +++ b/addons/l10n_ec/data/account.account.template.csv @@ -1,5 +1,5 @@ id,code,name,reconcile,account_type,chart_template_id/id -l10n_ec_ifrs_liquidity_transfer,111010301,Transferencias interbancarias,TRUE,asset_current,l10n_ec_ifrs +l10n_ec_ifrs_liquidity_transfer,11010301,Transferencias interbancarias,TRUE,asset_current,l10n_ec_ifrs ec11010401,11010401,Valores en custodia,FALSE,asset_current,l10n_ec_ifrs ec110201,110201,Activos financieros a valor razonable con cambios en resultados,FALSE,asset_current,l10n_ec_ifrs ec110202,110202,Activos financieros disponibles para la venta,FALSE,asset_current,l10n_ec_ifrs @@ -29,13 +29,13 @@ ec110401,110401,Seguros pagados por anticipado,TRUE,asset_prepayments,l10n_ec_if ec110402,110402,Arriendos pagados por anticipado,TRUE,asset_prepayments,l10n_ec_ifrs ec110403,110403,Anticipos a proveedores,TRUE,asset_prepayments,l10n_ec_ifrs ec_other_downpayments,11040401,Otros anticipos entregados,TRUE,asset_prepayments,l10n_ec_ifrs -ec_purchase_vat,11050101,Iva pagado en compras locales,FALSE,asset_current,l10n_ec_ifrs -ec_purchase_vat_assets,11050102,Iva pagado en compras locales de activos fijos,FALSE,asset_current,l10n_ec_ifrs -ec_purchase_vat_service_imports,11050103,Iva pagado en importacion de servicios,FALSE,asset_current,l10n_ec_ifrs -ec_purchase_vat_goods_imports,11050104,Iva pagado en importacion de bienes,FALSE,asset_current,l10n_ec_ifrs -ec_purchase_vat_assets_imports,11050105,Iva pagado en importacion de activos fijos,FALSE,asset_current,l10n_ec_ifrs -ec_sale_vat_outstanding_withholds,11050106,Iva pagado en retenciones de la fuente,FALSE,asset_current,l10n_ec_ifrs -ec_purchase_vat_zero,11050107,Iva en compras 0%,FALSE,asset_current,l10n_ec_ifrs +ec_purchase_vat,11050101,IVA pagado en compras locales,FALSE,asset_current,l10n_ec_ifrs +ec_purchase_vat_assets,11050102,IVA pagado en compras locales de activos fijos,FALSE,asset_current,l10n_ec_ifrs +ec_purchase_vat_service_imports,11050103,IVA pagado en importacion de servicios,FALSE,asset_current,l10n_ec_ifrs +ec_purchase_vat_goods_imports,11050104,IVA pagado en importacion de bienes,FALSE,asset_current,l10n_ec_ifrs +ec_purchase_vat_assets_imports,11050105,IVA pagado en importacion de activos fijos,FALSE,asset_current,l10n_ec_ifrs +ec_sale_vat_outstanding_withholds,11050106,IVA pagado en retenciones de la fuente,FALSE,asset_current,l10n_ec_ifrs +ec_purchase_vat_zero,11050107,IVA en compras 0%,FALSE,asset_current,l10n_ec_ifrs ec110502,110502,Credito tributario a favor de la empresa(i.r.),FALSE,asset_current,l10n_ec_ifrs ec110503,110503,Anticipo de impuesto a la renta,FALSE,asset_current,l10n_ec_ifrs ec_sale_profit_withhold,110504,Retenciones en la fuente pagadas,FALSE,asset_current,l10n_ec_ifrs @@ -132,11 +132,11 @@ ec2110,2110,Anticipos de clientes,TRUE,liability_payable,l10n_ec_ifrs ec2111,2111,Pasivos directamente asociados con los activos no corrientes y operaciones discontinuadas,FALSE,liability_current,l10n_ec_ifrs ec211201,211201,Otros beneficios a largo plazo para los empleados,TRUE,liability_payable,l10n_ec_ifrs ec211301,211301,Retenciones judiciales,FALSE,liability_current,l10n_ec_ifrs -ec_sale_vat,2114010101,Iva cobrado en ventas locales,FALSE,liability_current,l10n_ec_ifrs -ec_sale_vat_assets,2114010102,Iva cobrado en ventas de activos fijos,FALSE,liability_current,l10n_ec_ifrs -ec_sale_vat_goods_exports,2114010103,Iva cobrado en exportacion de bienes,FALSE,liability_current,l10n_ec_ifrs -ec_sale_vat_services_exports,2114010104,Iva cobrado en exportacion de servicios,FALSE,liability_current,l10n_ec_ifrs -ec_sale_vat_zero,2114010105,Iva en ventas 0%,FALSE,liability_current,l10n_ec_ifrs +ec_sale_vat,2114010101,IVA cobrado en ventas locales,FALSE,liability_current,l10n_ec_ifrs +ec_sale_vat_assets,2114010102,IVA cobrado en ventas de activos fijos,FALSE,liability_current,l10n_ec_ifrs +ec_sale_vat_goods_exports,2114010103,IVA cobrado en exportacion de bienes,FALSE,liability_current,l10n_ec_ifrs +ec_sale_vat_services_exports,2114010104,IVA cobrado en exportacion de servicios,FALSE,liability_current,l10n_ec_ifrs +ec_sale_vat_zero,2114010105,IVA en ventas 0%,FALSE,liability_current,l10n_ec_ifrs ret_ir_1x100,2114010201,Retenciones de la fuente 1%,FALSE,liability_current,l10n_ec_ifrs ret_ir_1_75x100,2114010202,Retenciones de la fuente 1.75%,FALSE,liability_current,l10n_ec_ifrs ret_ir_2x100,2114010203,Retenciones de la fuente 2%,FALSE,liability_current,l10n_ec_ifrs @@ -147,12 +147,12 @@ ret_ir_10x100,2114010207,Retenciones de la fuente 10%,FALSE,liability_current,l1 ret_ir_15x100,2114010208,Retenciones de la fuente 15%,FALSE,liability_current,l10n_ec_ifrs ret_ir_22x100,2114010209,Retenciones de la fuente 22%,FALSE,liability_current,l10n_ec_ifrs ret_ir_others,2114010210,Otras retenciones,FALSE,liability_current,l10n_ec_ifrs -ec_vat_withhold_10,2114010301,Retenciones de iva 10%,FALSE,liability_current,l10n_ec_ifrs -ec_vat_withhold_20,2114010302,Retenciones de iva 20%,FALSE,liability_current,l10n_ec_ifrs -ec_vat_withhold_30,2114010303,Retenciones de iva 30%,FALSE,liability_current,l10n_ec_ifrs -ec_vat_withhold_50,2114010304,Retenciones de iva 50%,FALSE,liability_current,l10n_ec_ifrs -ec_vat_withhold_70,2114010305,Retenciones de iva 70%,FALSE,liability_current,l10n_ec_ifrs -ec_vat_withhold_100,2114010306,Retenciones de iva 100%,FALSE,liability_current,l10n_ec_ifrs +ec_vat_withhold_10,2114010301,Retenciones de IVA 10%,FALSE,liability_current,l10n_ec_ifrs +ec_vat_withhold_20,2114010302,Retenciones de IVA 20%,FALSE,liability_current,l10n_ec_ifrs +ec_vat_withhold_30,2114010303,Retenciones de IVA 30%,FALSE,liability_current,l10n_ec_ifrs +ec_vat_withhold_50,2114010304,Retenciones de IVA 50%,FALSE,liability_current,l10n_ec_ifrs +ec_vat_withhold_70,2114010305,Retenciones de IVA 70%,FALSE,liability_current,l10n_ec_ifrs +ec_vat_withhold_100,2114010306,Retenciones de IVA 100%,FALSE,liability_current,l10n_ec_ifrs ec_vat_withhold_others,2114010307,Otras retenciones,FALSE,liability_current,l10n_ec_ifrs ec2201,2201,Pasivos por contratos de arrendamiento financiero,TRUE,liability_payable,l10n_ec_ifrs ec220201,220201,Cuentas y documentos por pagar locales,TRUE,liability_payable,l10n_ec_ifrs @@ -274,6 +274,8 @@ ec510405,510405,Gasto por garantias en venta de productos o servicios,FALSE,expe ec510406,510406,Mantenimiento y reparaciones,FALSE,expense_direct_cost,l10n_ec_ifrs ec510407,510407,Suministros materiales y repuestos,FALSE,expense_direct_cost,l10n_ec_ifrs ec51040801,51040801,Otros costos de produccion,FALSE,expense_direct_cost,l10n_ec_ifrs +ec51040802,51040802,Faltantes y sobrantes de ajustes de inventario,FALSE,expense_direct_cost,l10n_ec_ifrs +ec51040803,51040803,Desperdicios en el proceso productivo,FALSE,expense_direct_cost,l10n_ec_ifrs ec52010101,52010101,"Sueldos, salarios y demas remuneraciones",FALSE,expense,l10n_ec_ifrs ec52010102,52010102,Horas extra,FALSE,expense,l10n_ec_ifrs ec52010103,52010103,Bonificaciones por desempeño,FALSE,expense,l10n_ec_ifrs diff --git a/addons/l10n_ec/data/account_chart_template_setup_accounts.xml b/addons/l10n_ec/data/account_chart_template_setup_accounts.xml index 08d0e80ebbe68a..b91a85da2c6f0c 100644 --- a/addons/l10n_ec/data/account_chart_template_setup_accounts.xml +++ b/addons/l10n_ec/data/account_chart_template_setup_accounts.xml @@ -2,7 +2,7 @@ - Plan Contable NIIF Ecuador conforme Superintendencia de Compañías + Ecuador - Plan Cuentas NIIF SupCias diff --git a/addons/l10n_ec/data/account_fiscal_position_template.xml b/addons/l10n_ec/data/account_fiscal_position_template.xml index 981600d6c9db16..ef68f3c23efe4e 100644 --- a/addons/l10n_ec/data/account_fiscal_position_template.xml +++ b/addons/l10n_ec/data/account_fiscal_position_template.xml @@ -1,55 +1,38 @@ - - - Sociedades - personas juridicas - - - - Contribuyentes especiales - - - - Sector publico y ep - - - - Persona natural obligada a llevar contabilidad - - - - Persona natural no obligada - arriendos - - - - Persona natural no obligada - profesionales - - - - Persona natural no obligada - liquidaciones de compras - - - - Persona natural no obligadas - emite factura o nota de venta - - - - Empresa extranjera - venta local - - - - Persona extranjera - venta local - - - - Empresa extranjera - exportacion - - - - Persona extranjera - exportacion - - - - Otras - sin cálculo automático de retención de iva - + + 10 + + Régimen nacional + + + + + + 20 + + Régimen extranjero + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/l10n_ec/data/account_group_template_data.xml b/addons/l10n_ec/data/account_group_template_data.xml index dc63ae475a4666..7796607688969d 100644 --- a/addons/l10n_ec/data/account_group_template_data.xml +++ b/addons/l10n_ec/data/account_group_template_data.xml @@ -118,7 +118,7 @@ 110501 - Credito tributario a favor de la empresa(iva) + Credito tributario a favor de la empresa(IVA) @@ -299,7 +299,7 @@ 21140101 - Iva cobrado + IVA cobrado @@ -313,7 +313,7 @@ 21140103 - Retenciones de iva + Retenciones de IVA diff --git a/addons/l10n_ec/data/account_tax_group_data.xml b/addons/l10n_ec/data/account_tax_group_data.xml index 72b32429fe9819..64d374a7e97cb3 100644 --- a/addons/l10n_ec/data/account_tax_group_data.xml +++ b/addons/l10n_ec/data/account_tax_group_data.xml @@ -2,6 +2,13 @@ + + VAT 8% + vat08 + 5 + + + VAT 12% vat12 @@ -30,8 +37,8 @@ - - VAT Excempt + + VAT Exempt exempt_vat 50 @@ -51,19 +58,33 @@ - - VAT Withhold - withhold_vat + + VAT Withhold on Sales + withhold_vat_sale + 80 + + + + + VAT Withhold on Purchases + withhold_vat_purchase 80 - - Profit Withhold - withhold_income_tax + + Profit Withhold on Sales + withhold_income_sale 90 + + + Profit Withhold on Purchases + withhold_income_purchase + 95 + + Exchange Outflows diff --git a/addons/l10n_ec/data/account_tax_template_vat_data.xml b/addons/l10n_ec/data/account_tax_template_vat_data.xml index e372ac9a27380a..1b31dfc2b71c28 100644 --- a/addons/l10n_ec/data/account_tax_template_vat_data.xml +++ b/addons/l10n_ec/data/account_tax_template_vat_data.xml @@ -2,14 +2,51 @@ - - - Iva 12% + + + IVA 12% (411, Bienes) sale percent - 9 + 10 + 12.0 + IVA 12% + 411 + 421 + + + + + + + + IVA 12% (411, Servicios) + sale + percent + 20 12.0 IVA 12% 411 @@ -38,11 +75,11 @@ })]"/> - - Iva 12% (activos) + + IVA 12% (412, Activos) sale percent - 10 + 30 12.0 IVA 12% 412 @@ -62,20 +99,54 @@ + + + + IVA 0% (415, Bienes) + sale + percent + 40 + 0.0 + IVA 0% + 415 + + + + - - - Iva 0% + + + IVA 0% (415, Servicios) sale percent - 19 + 50 0.0 IVA 0% 415 @@ -101,11 +172,11 @@ })]"/> - - Iva 0% (activos) + + IVA 0% (416, Activos) sale percent - 20 + 60 0.0 IVA 0% 416 @@ -114,7 +185,7 @@ - - Iva 0% (sin crédito tributario) + + IVA 0% (413, Sin Crédito Tributario) sale percent - 20 + 70 0.0 IVA 0% 413 @@ -161,11 +232,11 @@ })]"/> - - Iva 0% (activos sin crédito tributario) + + IVA 0% (414, Activos Sin Crédito Tributario) sale percent - 20 + 80 0.0 IVA 0% 414 @@ -191,11 +262,11 @@ })]"/> - - Iva 0% (exportación bienes) + + IVA 0% (417, Exportación Bienes) sale percent - 21 + 90 0.0 IVA 0% 417 @@ -221,11 +292,11 @@ })]"/> - - Iva 0% (exportación servicios) + + IVA 0% (418, Exportación Servicios) sale percent - 21 + 100 0.0 IVA 0% 418 @@ -250,21 +321,21 @@ 'account_id': ref('l10n_ec.ec_sale_vat_services_exports'), })]"/> - - - Iva 0% (no objeto/exentas) + + + IVA 0% (441, No Objeto/Exentas) sale percent - 40 + 110 0.0 IVA EXENTO - 419 + 441 - + - - Iva 12% (reembolso) + + IVA 12% (444, Reembolsos) sale percent - 10 + 120 12.0 IVA 12% 444 @@ -305,7 +376,7 @@ - - - Iva 12% + + + + + IVA 12% (510, 01 Crédito IVA) purchase percent 9 @@ -327,28 +400,144 @@ - - - Iva 12% (activos) + + + IVA 12% (510, 05 Liq. Viaje Gasto IR) + purchase + percent + 9 + 12.0 + IVA 12% + 510 + 520 + + + + + + + + IVA 12% (510, 06 Inventario Crédito IVA) + purchase + percent + 9 + 12.0 + IVA 12% + 510 + 520 + + + + + + + + IVA 12% (510, 15 Servicios Digitales) + purchase + percent + 9 + 12.0 + IVA 12% + 510 + 520 + + + + + + + + + IVA 12% (511, 03 Activos Crédito IVA) purchase percent 10 @@ -379,9 +568,71 @@ 'minus_report_expression_ids': [ref('tax_report_line_104_521_tag')], })]"/> - - - Iva 12% (sin crédito tributario) + + + IVA 12% (512, 04 Activos Costo IR) + purchase + percent + 10 + 12.0 + IVA 12% + 512 + 522 + + + + + + + + IVA 12% (512, 05 Liq. Viaje Gasto IR) + purchase + percent + 10 + 12.0 + IVA 12% + 512 + 522 + + + + + + + + IVA 12% (512, 07 Inventario Costo IR) purchase percent 10 @@ -393,26 +644,30 @@ - - - Iva 12% (importación servicios) + + + IVA 12% (513, 01 Crédito IVA) purchase percent 10 @@ -443,9 +698,9 @@ 'minus_report_expression_ids': [ref('tax_report_line_104_523_tag')], })]"/> - - - Iva 12% (importación bienes) + + + IVA 12% (514, 06 Inventario Crédito IVA) purchase percent 10 @@ -476,9 +731,9 @@ 'minus_report_expression_ids': [ref('tax_report_line_104_524_tag')], })]"/> - - - Iva 12% (importación activos) + + + IVA 12% (515, 03 Activos Crédito IVA) purchase percent 10 @@ -509,9 +764,40 @@ 'minus_report_expression_ids': [ref('tax_report_line_104_525_tag')], })]"/> - - - Iva 0% + + + + IVA 0% (516, 07 Inventario Costo IR) + purchase + percent + 20 + 0.0 + IVA 0% + 516 + + + + + + + + IVA 0% (517, 02 Costo IR) purchase percent 20 @@ -539,21 +825,21 @@ 'account_id': ref('l10n_ec.ec_purchase_vat_zero'), })]"/> - - - Iva 0% (importación bienes) + + + IVA 0% (517, 04 Activos Costo IR) purchase percent 20 0.0 IVA 0% - 516 + 517 - - - Iva 0% (rise) + + + IVA 0% (517, 05 Liq. Viaje Gasto IR) + purchase + percent + 20 + 0.0 + IVA 0% + 517 + + + + + + + + IVA 0% (517, 07 Inventario Costo IR) + purchase + percent + 20 + 0.0 + IVA 0% + 517 + + + + + + + + IVA 0% (517, 15 Servicios Digitales) + purchase + percent + 20 + 0.0 + IVA 0% + 517 + + + + + + + + IVA 0% (518, 02 Costo IR) purchase percent 20 @@ -595,25 +976,27 @@ 'minus_report_expression_ids': [ref('tax_report_line_104_518_tag')], }), (0,0, { + 'factor_percent': 100, 'repartition_type': 'tax', 'account_id': ref('l10n_ec.ec_purchase_vat_zero'), })]"/> - - - Iva 0% (no objeto de iva) - purchase + + + + No Objeto IVA 0% (541, 02 Costo IR) percent 30 0.0 - NO OBJETO DE IVA + IVA 0% 541 - + - - - Iva 0% (excento de iva) + + IVA 8% (510, 01 Crédito IVA) + purchase + percent + 50 + 8.0 + IVA 8% + 510 + 520 + + + + + + + + Exento IVA 0% (542, 02 Costo IR) purchase percent 40 @@ -639,7 +1060,7 @@ IVA EXENTO 542 - + - - - Iva 12% (reembolso intermediario) + + + IVA 12% (545, 08 Reembolso) + purchase + percent + 10 + 12.0 + IVA 12% + 545 + 555 + + + + + + + + IVA 12% (545, 09 Reembolso Siniestro) purchase percent 10 diff --git a/addons/l10n_ec/data/account_tax_template_withhold_profit_data.xml b/addons/l10n_ec/data/account_tax_template_withhold_profit_data.xml index c09faee6c9548b..92e645c72c7e7b 100644 --- a/addons/l10n_ec/data/account_tax_template_withhold_profit_data.xml +++ b/addons/l10n_ec/data/account_tax_template_withhold_profit_data.xml @@ -1,12 +1,12 @@ - - 303 10% honorarios profesionales y demas pagos por servicios relacionados con el titulo profesional - purchase + 303 10% Honorarios Profesionales y Demás Pagos por Servicios Relacionados con el Titulo Profesional + none percent 70 -10.0 @@ -15,7 +15,7 @@ 303 303 - + - 304 8% servicios predomina el intelecto no relacionados con el titulo profesional - purchase + 304 8% Servicios Predomina el Intelecto No Relacionados con el Titulo Profesional + none percent 70 -8.0 @@ -48,7 +48,7 @@ 304 304 - + - 304a 8% comisiones y demas pagos por servicios predomina intelecto no relacionados con el titulo profesional - purchase + 304A 8% Comisiones y Demas Pagos por Servicios Predomina Intelecto No Relacionados con el Titulo Profesional + none percent 70 -8.0 @@ -81,7 +81,7 @@ 304 304A - + - 304b 8% pagos a notarios y registradores de la propiedad y mercantil por sus actividades ejercidas como tales - purchase + 304B 8% Pagos a Notarios y Registradores de la Propiedad y Mercantil por sus Actividades Ejercidas Como Tales + none percent 70 -8.0 @@ -114,7 +114,7 @@ 304 304B - + - 304c 8% pagos a deportistas, entrenadores, arbitros, miembros del cuerpo tecnico por sus actividades ejercidas como tales - purchase + 304C 8% Pagos a Deportistas, Entrenadores, Arbitros, Miembros del Cuerpo Tecnico por sus Actividades Ejercidas Como Tales + none percent 70 -8.0 @@ -147,7 +147,7 @@ 304 304C - + - 304d 8% pagos a artistas por sus actividades ejercidas como tales - purchase + 304D 8% Pagos a Artistas por sus Actividades Ejercidas Como Tales + none percent 70 -8.0 @@ -180,7 +180,7 @@ 304 304D - + - 304e 8% honorarios y demas pagos por servicios de docencia - purchase + 304E 8% Honorarios y Demas Pagos por Servicios de Docencia + none percent 70 -8.0 @@ -213,7 +213,7 @@ 304 304E - + - 307 2% servicios predomina mano de obra - purchase + 307 2% Servicios Predomina Mano de Obra + none percent 70 -2.0 @@ -246,7 +246,7 @@ 307 307 - + - 308 10% utilizacion o aprovechamiento de la imagen o renombre - purchase + 308 10% Utilizacion o Aprovechamiento de la Imagen o Renombre + none percent 70 -10.0 @@ -279,7 +279,7 @@ 308 308 - + - 309 1.75% servicios prestados por medios de comunicación y agencias de publicidad - purchase + 309 1.75% Servicios Prestados por Medios de Comunicación y Agencias de Publicidad + none percent 70 -1.75 @@ -312,7 +312,7 @@ 309 309 - + - 310 1% servicio de transporte privado de pasajeros o transporte publico o privado de carga - purchase + 310 1% Servicio de Transporte Privado de Pasajeros o Transporte Publico o Privado de Carga + none percent 70 -1.0 @@ -345,7 +345,7 @@ 310 310 - + - 311 2% por pagos a traves de liquidacion de compra (nivel cultural o rusticidad) - purchase + 311 2% Por Pagos a Traves de Liquidacion de Compra (nivel cultural o rusticidad) + none percent 70 -2.0 @@ -378,7 +378,7 @@ 311 311 - + - 312 1.75% transferencia de bienes muebles de naturaleza corporal - purchase + 312 1.75% Transferencia de Bienes Muebles de Naturaleza Corporal + none percent 70 -1.75 @@ -411,7 +411,7 @@ 312 312 - + - 312a 1% compra de bienes de origen agricola, avicola, pecuario, apicola, cunicula, bioacuatico, y forestal - purchase + 312A 1% Compra de Bienes de Origen Agricola, Avicola, Pecuario, Apicola, Cunicula, Bioacuatico, y Forestal + none percent 70 -1.0 @@ -444,7 +444,7 @@ 312 312A - + - 314a 8% regalias por concepto de franquicias de acuerdo a ley de propiedad intelectual - pago a personas naturales - purchase + 314A 8% Regalias por Concepto de Franquicias de Acuerdo a Ley de Propiedad Intelectual - Pago a Personas Naturales + none percent 70 -8.0 @@ -477,7 +477,7 @@ 314 314A - + - 314b 8% casales, derechos de autor, marcas, patentes y similares de acuerdo a ley de propiedad intelectual – pago a personas naturales - purchase + 314B 8% Casales, Derechos de Autor, Marcas, Patentes y Similares de Acuerdo a Ley de Propiedad Intelectual – Pago a Personas Naturales + none percent 70 -8.0 @@ -510,7 +510,7 @@ 314 314B - + - 314c 8% regalias por concepto de franquicias de acuerdo a ley de propiedad intelectual - pago a sociedades - purchase + 314C 8% Regalias por Concepto de Franquicias de Acuerdo a Ley de Propiedad Intelectual - Pago a Sociedades + none percent 70 -8.0 @@ -543,7 +543,7 @@ 314 314C - + - 314d 8% casales, derechos de autor, marcas, patentes y similares de acuerdo a ley de propiedad intelectual – pago a sociedades - purchase + 314D 8% Casales, Derechos de Autor, Marcas, Patentes y Similares de Acuerdo a Ley de Propiedad Intelectual – Pago a Sociedades + none percent 70 -8.0 @@ -576,7 +576,7 @@ 314 314D - + - 319 1.75% cuotas de arrendamiento mercantil (prestado por sociedades), inclusive la de opción de compra - purchase + 319 1.75% Cuotas de Arrendamiento Mercantil (Prestado por Sociedades), Inclusive la de Opción de Compra + none percent 70 -1.75 @@ -609,7 +609,7 @@ 319 319 - + - 320 8% por arrendamiento bienes inmuebles - purchase + 320 8% Por Arrendamiento Bienes Inmuebles + none percent 70 -8.0 @@ -642,7 +642,7 @@ 320 320 - + - 322 1.75% seguros y reaseguros (primas y cesiones) 1.75% - purchase + 322 1.75% Seguros y Reaseguros (Primas y Cesiones) 1.75% + none percent 70 -1.75 @@ -675,7 +675,7 @@ 322 322 - + - 332 0% otras compras de bienes y servicios no sujetas a retencion - purchase + 332 0% Otras Compras de Bienes y Servicios No Sujetas a Retencion + none percent 70 0.0 @@ -707,7 +707,7 @@ 332 332 - + - 332a 0% enajenacion de derechos representativos de capital y otros derechos exentos (mayo 2016) - purchase + 332A 0% Enajenacion de Derechos Representativos de Capital y Otros Derechos Exentos (mayo 2016) + none percent 70 0.0 @@ -737,7 +737,7 @@ 332 332A - + - 332b 0% compra de bienes inmuebles - purchase + 332B 0% Compra de Bienes Inmuebles + none percent 70 0.0 @@ -767,7 +767,7 @@ 332 332B - + - 332c 0% transporte publico de pasajeros - purchase + 332C 0% Transporte Publico de Pasajeros + none percent 70 0.0 @@ -797,7 +797,7 @@ 332 332C - + - 332d 0% pagos en el pais por transporte de pasajeros o transporte internacional de carga, a compañias nacionales o extranjeras de aviacion o maritimas - purchase + 332D 0% Pagos en el Pais por Transporte de Pasajeros o Transporte Internacional de Carga, a Compañias Nacionales o Extranjeras de Aviacion o Maritimas + none percent 70 0.0 @@ -827,7 +827,7 @@ 332 332D - + - 332g 0% pagos con tarjeta de credito - purchase + 332G 0% Pagos con Tarjeta de Credito + none percent 70 0.0 @@ -857,7 +857,7 @@ 332 332G - + - 332i 0% pagos a través de convenios de débito (clientes ifi`s) - purchase + 332I 0% Pagos a Través de Convenios de Débito (clientes ifi`s) + none percent 70 0.0 @@ -887,7 +887,7 @@ 332 332I - + + + 343 1% Otras Retenciones Aplicables el 1% (Incluye régimen RIMPE) + none + percent + 70 + -1.0 + Otras 1% + 393 + 343 + 343 + + + + + - 343a 1% por energia electrica - purchase + 343A 1% Por Energia Electrica + none percent 70 -1.0 @@ -918,7 +955,7 @@ 343 343A - + - 343b 1% por actividades de construccion de obra material inmueble, urbanizacion, lotizacion o actividades similares - purchase + 343B 1% Por Actividades de Construccion de Obra Material Inmueble, Urbanizacion, Lotizacion o Actividades Similares + none percent 70 -1.0 @@ -951,7 +988,7 @@ 343 343B - + - 3440 2.75% otras retenciones aplicables el 2,75% - purchase + 3440-344 2.75% Otras Retenciones Aplicables el 2,75% + none percent 70 - -2.0 + -2.75 3440 394 - 3440 + 344 3440 - + - 346 1.75% microempresas (otras retenciones aplicables a otros porcentajes) - purchase + 346 1.75% Microempresas (Otras retenciones aplicables a otros porcentajes) + none percent 70 -1.75 @@ -1017,31 +1054,31 @@ 346 346 - + - 347-346 2% donaciones en dinero -impuesto a la donaciones - purchase + 347-346 2% Donaciones en Dinero -Impuesto a las Donaciones + none percent 70 -2.0 @@ -1050,7 +1087,7 @@ 346 347 - + - 501-411 22% pago al exterior - beneficios empresariales (con convenio de doble tributación) - purchase + 501-411 22% Pago al Exterior - Beneficios Empresariales (Con Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1083,7 +1120,7 @@ 411 501 - + - 501-422 22% pago al exterior - beneficios empresariales (sin convenio de doble tributación) - purchase + 501-422 22% Pago al Exterior - Beneficios Empresariales (Sin Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1116,7 +1153,7 @@ 422 501 - + - 502-411 22% pago al exterior - servicios empresariales (con convenio de doble tributación) - purchase + 502-411 22% Pago al Exterior - Servicios Empresariales (Con Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1149,7 +1186,7 @@ 411 502 - + - 502-422 22% pago al exterior - servicios empresariales (sin convenio de doble tributación) - purchase + 502-422 22% Pago al Exterior - Servicios Empresariales (Sin Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1182,7 +1219,7 @@ 422 502 - + - 509-411 22% pago al exterior - casales, derechos de autor, marcas, patentes y similares (con convenio de doble tributación) - purchase + 509-411 22% Pago al Exterior - Casales, Derechos de Autor, Marcas, Patentes y Similares (Con Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1215,7 +1252,7 @@ 461 509 - + - 509-422 pago al exterior - casales, derechos de autor, marcas, patentes y similares (sin convenio de doble tributación) - purchase + 509-422 Pago al Exterior - Casales, Derechos de Autor, Marcas, Patentes y Similares (Sin Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1248,7 +1285,7 @@ 472 509 - + - 511-411 22% pago al exterior - servicios profesionales independientes (con convenio de doble tributación) - purchase + 511-411 22% Pago al Exterior - Servicios Profesionales Independientes (Con Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1281,7 +1318,7 @@ 461 511 - + - 512-411 22% pago al exterior - servicios profesionales dependientes (con convenio de doble tributación) - purchase + 512-411 22% Pago al Exterior - Servicios Profesionales Dependientes (Con Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1314,7 +1351,7 @@ 461 512 - + - 517-411 22% pago al exterior - reembolso de gastos (con convenio de doble tributación) - purchase + 517-411 22% Pago al Exterior - Reembolso de Gastos (Con Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1347,7 +1384,7 @@ 461 517 - + - 520d-411 22% pago al exterior - comisiones por exportaciones y por promocion de turismo receptivo (con convenio de doble tributación) - purchase + 520D-411 22% Pago al Exterior - Comisiones por Exportaciones y Por Promocion de Turismo Receptivo (Con Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1380,7 +1417,7 @@ 461 520D - + - 522a-410 22% pago al exterior - servicios tecnicos, administrativos o de consultoria y regalias con convenio de doble tributacion (con convenio de doble tributación) - purchase + 522A-410 22% Pago al Exterior - Servicios Tecnicos, Administrativos o de Consultoria y Regalias (Con Convenio de Doble Tributación) + none percent 70 -22.0 @@ -1413,7 +1450,7 @@ 460 522A - + - - 1% retenciones de la fuente - sale + 1% Retenciones de la Fuente + none percent 70 -1.0 1% - + - 1.75% retenciones de la fuente - sale + 1.75% Retenciones de la Fuente + none percent 70 -1.75 1.75% - + - 2% retenciones de la fuente - sale + 2% Retenciones de la Fuente + none percent 70 -2.0 2% - + - 2.75% retenciones de la fuente - sale + 2.75% Retenciones de la Fuente + none percent 70 -2.75 2.75% - + - 5% retenciones de la fuente - sale + 5% Retenciones de la Fuente + none percent 70 -5.0 5% - + - 8% retenciones de la fuente - sale + 8% Retenciones de la Fuente + none percent 70 -8.0 8% - + - 10% retenciones de la fuente - sale + 10% Retenciones de la Fuente + none percent 70 -10.0 10% - + - 15% retenciones de la fuente - sale + 15% Retenciones de la Fuente + none percent 70 -15.0 15% - + - 22% retenciones de la fuente - sale + 22% Retenciones de la Fuente + none percent 70 -22.0 22% - + - Retencion iva 10% - purchase + 10% Retención IVA + none percent 50 -10.0 RET IVA 10% 721 - + - Retencion iva 20% - purchase + 20% Retención IVA + none percent 50 -20.0 RET IVA 20% 723 - + - Retencion iva 30% - purchase + 30% Retención IVA + none percent 50 -30.0 RET IVA 30% 725 - + - Retencion iva 50% - purchase + 50% Retención IVA + none percent 50 -50.0 RET IVA 50% 727 - + - Retencion iva 70% - purchase + 70% Retención IVA + none percent 50 -70.0 RET IVA 70% 729 - + - Retencion iva 100% - purchase + 100% Retención IVA + none percent 50 -100.0 RET IVA 100% 731 - + - Retencion iva 10% - sale + 10% Retención IVA + none percent 60 -10.0 RET IVA 10% 609 - + - Retencion iva 20% - sale + 20% Retención IVA + none percent 60 -20.0 RET IVA 20% 609 - + - Retencion iva 30% - sale + 30% Retención IVA + none percent 60 -30.0 RET IVA 30% 609 - + - Retencion iva 50% - sale + 50% Retención IVA + none percent 60 -50.0 RET IVA 50% 609 - + - Retencion iva 70% - sale + 70% Retención IVA + none percent 60 -70.0 RET IVA 70% 609 - + - Retencion iva 100% - sale + 100% Retención IVA + none percent 60 -100.0 RET IVA 100% 609 - + RUC - Registre Unico de Contribuyente + Registro Unico de Contribuyente 10 diff --git a/addons/l10n_ec/data/res_partner_data.xml b/addons/l10n_ec/data/res_partner_data.xml index 02cab7043bcade..faf25e2dadbd17 100644 --- a/addons/l10n_ec/data/res_partner_data.xml +++ b/addons/l10n_ec/data/res_partner_data.xml @@ -9,7 +9,7 @@ - Instituto Ecuatorian de Seguridad Social + Instituto Ecuatoriano de Seguridad Social https://www.iess.gob.ec diff --git a/addons/l10n_ec/demo/account_demo.py b/addons/l10n_ec/demo/account_demo.py index ad464f1d8a328b..5c7e7ff129a533 100644 --- a/addons/l10n_ec/demo/account_demo.py +++ b/addons/l10n_ec/demo/account_demo.py @@ -15,7 +15,7 @@ def _get_demo_data_move(self): cid = self.env.company.id model, data = super()._get_demo_data_move() if self.env.company.account_fiscal_country_id.code == 'EC': - document_type = ref('l10n_ec.ec_dt_18', False) and ref('l10n_ec.ec_dt_18').id or False + document_type = ref('l10n_ec.ec_dt_01', False) and ref('l10n_ec.ec_dt_01').id or False data[f'{cid}_demo_invoice_1']['l10n_latam_document_type_id'] = document_type data[f'{cid}_demo_invoice_2']['l10n_latam_document_type_id'] = document_type data[f'{cid}_demo_invoice_3']['l10n_latam_document_type_id'] = document_type diff --git a/addons/l10n_ec/demo/demo_company.xml b/addons/l10n_ec/demo/demo_company.xml index 9291861d1313db..26a3314a280fcc 100644 --- a/addons/l10n_ec/demo/demo_company.xml +++ b/addons/l10n_ec/demo/demo_company.xml @@ -2,8 +2,8 @@ EC Company - 2067636473651 - A + 2067636473001 + Av. de las Americas 505 Quito diff --git a/addons/l10n_ec/i18n/es_EC.po b/addons/l10n_ec/i18n/es_EC.po index e91e74b16d1ec0..8193b581734043 100644 --- a/addons/l10n_ec/i18n/es_EC.po +++ b/addons/l10n_ec/i18n/es_EC.po @@ -4,10 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.5alpha1+e\n" +"Project-Id-Version: Odoo Server 16.1alpha1+e\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-30 12:58+0000\n" -"PO-Revision-Date: 2021-07-30 12:58+0000\n" +"POT-Creation-Date: 2023-01-02 18:11+0000\n" +"PO-Revision-Date: 2023-01-02 18:11+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,393 +16,333 @@ msgstr "" "Plural-Forms: \n" #. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__witholding_move_id -#, python-format -msgid "Account Move" -msgstr "" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__00 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__00 +msgid "00 Special cases whose support does not apply to the above options" +msgstr "00 Casos especiales cuyo sustento no aplica en las opciones anteriores" #. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__amount -#, python-format -msgid "Amount" -msgstr "" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__01 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__01 +msgid "" +"01 Tax credit for VAT declaration (services and goods other than inventories" +" and fixed assets)" +msgstr "01 Crédito Tributario para declaración de IVA (servicios y bienes distintos de inventarios y activos fijos)" #. module: l10n_ec -#: code:addons/l10n_ec/models/account_move.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__l10n_ec_access_key -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__l10n_ec_auth_type -#: model:ir.model.fields,field_description:l10n_ec.field_account_move__l10n_ec_access_key -#: model:ir.model.fields,field_description:l10n_ec.field_account_move__l10n_ec_auth_type -#: model:ir.model.fields,field_description:l10n_ec.field_account_payment__l10n_ec_access_key -#: model:ir.model.fields,field_description:l10n_ec.field_account_payment__l10n_ec_auth_type -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_latam_document_type__l10n_ec_authorization -#, python-format -msgid "Authorization" -msgstr "" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__02 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__02 +msgid "" +"02 Cost or Expense for IR declaration (services and goods other than " +"inventories and fixed assets)" +msgstr "02 Costo o Gasto para declaración de IR (servicios y bienes distintos de inventarios y activos fijos)" + +#. module: l10n_ec +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__03 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__03 +msgid "03 Fixed Asset - Tax Credit for VAT return" +msgstr "03 Activo Fijo - Crédito Tributario para declaración de IVA" + +#. module: l10n_ec +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__04 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__04 +msgid "04 Fixed Asset - Cost or Expense for IR declaration" +msgstr "04 Activo Fijo - Costo o Gasto para declaración de IR" + +#. module: l10n_ec +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__05 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__05 +msgid "" +"05 Settlement of travel, lodging and food expenses IR expenses (on behalf of" +" employees and not of the company)" +msgstr "05 Liquidación Gastos de Viaje, hospedaje y alimentación Gastos IR (a nombre de empleados y no de la empresa)" + +#. module: l10n_ec +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__06 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__06 +msgid "06 Inventory - Tax Credit for VAT return" +msgstr "06 Inventario - Crédito Tributario para declaración de IVA" + +#. module: l10n_ec +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__07 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__07 +msgid "07 Inventory - Cost or Expense for IR declaration" +msgstr "07 Inventario - Costo o Gasto para declaración de IR" + +#. module: l10n_ec +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__08 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__08 +msgid "08 Amount paid to request Expense Reimbursement (intermediary)" +msgstr "08 Valor pagado para solicitar Reembolso de Gasto (intermediario)" + +#. module: l10n_ec +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__09 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__09 +msgid "09 Claims Reimbursement" +msgstr "09 Reembolso por Siniestros" + +#. module: l10n_ec +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__10 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__10 +msgid "10 Distribution of Dividends, Benefits or Profits" +msgstr "10 Distribución de Dividendos, Beneficios o Utilidades" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__base -msgid "Base" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__15 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__15 +msgid "" +"15 Payments made for own and third-party consumption of digital services" +msgstr "15 Pagos efectuados por consumos propios y de terceros de servicios digitales" + +#. module: l10n_ec +#: model:ir.model,name:l10n_ec.model_account_chart_template +msgid "Account Chart Template" +msgstr "Plantilla de Plan de Cuentas" + +#. module: l10n_ec +#: model:ir.model.fields,help:l10n_ec.field_l10n_latam_document_type__internal_type +msgid "" +"Analog to odoo account.move.move_type but with more options allowing to " +"identify the kind of document we are working with. (not only related to " +"account.move, could be for documents of other models like stock.picking)" msgstr "" +"Análogo a account.move.type de Odoo pero con más opciones, permitiendo " +"identificar el tipo de documento sobre el que estamos trabajando. (no " +"solamente relativo a account.move, podría ser relativo a otros modelos, como" +" por ejemplo stock.picking)" #. module: l10n_ec -#: model:l10n_latam.identification.type,name:l10n_ec.ec_dni -msgid "Ced" +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_latam_document_type__l10n_ec_check_format +msgid "Check Number Format EC" +msgstr "Validar Formato Numérico EC" + +#. module: l10n_ec +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__code +msgid "Code" msgstr "" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_ats #: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_ats msgid "Code ATS" -msgstr "" +msgstr "Código ATS" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_applied #: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_applied msgid "Code applied" -msgstr "" +msgstr "Código aplicado" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_base #: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_base msgid "Code base" -msgstr "" +msgstr "Código base" #. module: l10n_ec #: model:ir.model,name:l10n_ec.model_res_company msgid "Companies" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__company_id -msgid "Company" -msgstr "" +msgstr "Compañías" #. module: l10n_ec #: model:ir.model,name:l10n_ec.model_res_partner msgid "Contact" -msgstr "" +msgstr "Contacto" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__create_uid -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__create_uid -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__create_uid msgid "Created by" -msgstr "" +msgstr "Creado por" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__create_date -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__create_date -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__create_date msgid "Created on" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__currency_id -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__currency_id -msgid "Currency" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__out_invoice -msgid "Customer Document" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__out_refund -msgid "Customer Refund" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__out_withhold -msgid "Customer Withhold" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_product_product__witholding_tax_ids -#: model:ir.model.fields,field_description:l10n_ec.field_product_template__witholding_tax_ids -msgid "Customer Witholdings" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__code -msgid "Código" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_product_product__witholding_tax_ids -#: model:ir.model.fields,help:l10n_ec.field_product_template__witholding_tax_ids -msgid "Default witholding used when selling the product." -msgstr "" +msgstr "Creado en" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__display_name -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__display_name -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__display_name msgid "Display Name" -msgstr "" - -#. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__l10n_latam_document_type_id -#, python-format -msgid "Document Type" -msgstr "" +msgstr "Nombre mostrado" #. module: l10n_ec #: model_terms:ir.ui.view,arch_db:l10n_ec.view_document_type_conf_form msgid "Ecuadorian Configuration" -msgstr "" +msgstr "Configuración Ecuatoriana" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_latam_document_type__l10n_ec_type -msgid "Ecuadorian Type" -msgstr "" +#. odoo-python +#: code:addons/l10n_ec/models/l10n_latam_document_type.py:0 +#, python-format +msgid "Ecuadorian Document %s must be like 001-001-123456789" +msgstr "El Documento Ecuatoriano %s debe ser de la forma 001-001-123456789" #. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_account_bank_statement_line__l10n_ec_auth_type -#: model:ir.model.fields,help:l10n_ec.field_account_move__l10n_ec_auth_type -#: model:ir.model.fields,help:l10n_ec.field_account_payment__l10n_ec_auth_type -#: model:ir.model.fields,help:l10n_ec.field_l10n_latam_document_type__l10n_ec_authorization -msgid "" -"Ecuadorian tax authority requires an authorization for certain documents" -msgstr "" +#: model:ir.ui.menu,name:l10n_ec.sri_menu +msgid "Ecuadorian SRI" +msgstr "Ecuador SRI" #. module: l10n_ec #: model:ir.model.fields,help:l10n_ec.field_account_tax_group__l10n_ec_type msgid "Ecuadorian taxes subtype" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_account_bank_statement_line__amount_by_group_wth -#: model:ir.model.fields,help:l10n_ec.field_account_move__amount_by_group_wth -#: model:ir.model.fields,help:l10n_ec.field_account_payment__amount_by_group_wth -msgid "Edit Tax amounts if you encounter rounding issues." -msgstr "" +msgstr "Subtipo de impuestos Ecuatorianos" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_import_journal_creation__l10n_ec_entity #: model:ir.model.fields,field_description:l10n_ec.field_account_journal__l10n_ec_entity msgid "Emission Entity" -msgstr "" +msgstr "Entidad emisora" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_import_journal_creation__l10n_ec_emission #: model:ir.model.fields,field_description:l10n_ec.field_account_journal__l10n_ec_emission msgid "Emission Point" -msgstr "" +msgstr "Punto de emisión" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__hr_advance -msgid "Employee Advance" -msgstr "" +#: model:ir.model.fields,field_description:l10n_ec.field_account_journal__l10n_ec_emission_address_id +msgid "Emission address" +msgstr "Dirección Emisión" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_outflows +#: model:account.tax.group,name:l10n_ec.tax_group_outflows #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__outflows_tax msgid "Exchange Outflows" -msgstr "" - -#. module: l10n_ec -#: model:ir.actions.act_window,name:l10n_ec.action_account_l10n_ec_sri_payment_tree -#: model:ir.ui.menu,name:l10n_ec.menu_action_account_l10n_ec_sri_payment -msgid "Formas de pago SRI" -msgstr "" +msgstr "Salidas por cambio" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__id -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__id -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__id msgid "ID" -msgstr "" +msgstr "Identificación" #. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_l10n_latam_document_type__l10n_ec_type -msgid "Indicates the aplicability of the document" -msgstr "" +#. odoo-python +#: code:addons/l10n_ec/models/res_partner.py:0 +#, python-format +msgid "If your identification type is %s, it must be 10 digits" +msgstr "Si su tipo de identificación es %s, debe ser de 10 digitos" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__out_waybill -msgid "Issued Waybill" -msgstr "" +#. odoo-python +#: code:addons/l10n_ec/models/res_partner.py:0 +#, python-format +msgid "If your identification type is %s, it must be 13 digits" +msgstr "Si su tipo de identificación es %s, debe ser de 13 digitos" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_authorization__third -msgid "Issued by Third Parties" +#: model:ir.model.fields,help:l10n_ec.field_account_tax__l10n_ec_code_taxsupport +#: model:ir.model.fields,help:l10n_ec.field_account_tax_template__l10n_ec_code_taxsupport +msgid "" +"Indicates if the purchase invoice supports tax credit or cost or expenses, " +"conforming table 5 of ATS" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_authorization__own -msgid "Issued by my company" -msgstr "" +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_latam_document_type__internal_type +msgid "Internal Type" +msgstr "Tipo interno" #. module: l10n_ec #: model:ir.model,name:l10n_ec.model_account_journal -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__journal_id msgid "Journal" -msgstr "" +msgstr "Diario" #. module: l10n_ec #: model:ir.model,name:l10n_ec.model_account_move msgid "Journal Entry" -msgstr "" - -#. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_account_move_line -msgid "Journal Item" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__l10n_ec_is_electronic -#: model:ir.model.fields,field_description:l10n_ec.field_account_move__l10n_ec_is_electronic -#: model:ir.model.fields,field_description:l10n_ec.field_account_payment__l10n_ec_is_electronic -msgid "L10N Ec Is Electronic" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment____last_update -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding____last_update -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines____last_update -msgid "Last Modified on" -msgstr "" +msgstr "Entrada de diario" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__write_uid -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__write_uid -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Última actualización por" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__write_date -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__write_date -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__write_date msgid "Last Updated on" -msgstr "" +msgstr "Ultima actualización en" #. module: l10n_ec #: model:ir.model,name:l10n_ec.model_l10n_latam_document_type msgid "Latam Document Type" -msgstr "" +msgstr "Tipo de Documento Latinoamericano" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__name -msgid "Nombre" +msgid "Name" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_authorization__none -msgid "None" -msgstr "" - -#. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__invoice_id -#, python-format -msgid "Origin Document" -msgstr "" - -#. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_others +#: model:account.tax.group,name:l10n_ec.tax_group_others #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__other -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__other msgid "Others" -msgstr "" +msgstr "Otros" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__partner_id -msgid "Partner" -msgstr "" - -#. module: l10n_ec -#: code:addons/l10n_ec/models/account_move.py:0 #: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__l10n_ec_sri_payment_id #: model:ir.model.fields,field_description:l10n_ec.field_account_move__l10n_ec_sri_payment_id #: model:ir.model.fields,field_description:l10n_ec.field_account_payment__l10n_ec_sri_payment_id -#, python-format msgid "Payment Method (SRI)" -msgstr "" +msgstr "Método de pago (SRI)" #. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__percent -#, python-format -msgid "Percent" +#: model:ir.actions.act_window,name:l10n_ec.action_account_l10n_ec_sri_payment_tree +#: model:ir.ui.menu,name:l10n_ec.menu_action_account_l10n_ec_sri_payment +msgid "Payment Methods SRI" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_irbpnr +#: model:account.tax.group,name:l10n_ec.tax_group_irbpnr #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__irbpnr msgid "Plastic Bottles (IRBPNR)" -msgstr "" +msgstr "Botellas de plástico (IRBPNR)" #. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_product_template -msgid "Product Template" -msgstr "" +#: model:account.tax.group,name:l10n_ec.tax_group_withhold_income_purchase +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_income_purchase +msgid "Profit Withhold on Purchases" +msgstr "Retención Renta en Compras" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_withhold_income -#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_income_tax -msgid "Profit Withhold" -msgstr "" +#: model:account.tax.group,name:l10n_ec.tax_group_withhold_income_sale +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_income_sale +msgid "Profit Withhold on Sales" +msgstr "Retención Renta en Ventas" #. module: l10n_ec -#: model:l10n_latam.identification.type,name:l10n_ec.ec_ruc -msgid "RUC" -msgstr "" - -#. module: l10n_ec -#: model:ir.actions.act_window,name:l10n_ec.action_account_l10n_ec_witholding_tree -#: model:ir.ui.menu,name:l10n_ec.menu_action_account_l10n_ec_witholding -msgid "Retenciones" -msgstr "" +#: model:ir.model,name:l10n_ec.model_l10n_ec_sri_payment +msgid "SRI Payment Method" +msgstr "SRI Forma de Pago" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_ice +#: model:account.tax.group,name:l10n_ec.tax_group_ice msgid "Special Consumptions (ICE)" -msgstr "" +msgstr "Consumos Especiales (ICE)" #. module: l10n_ec #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__ice msgid "Special Consumptions Tax (ICE)" -msgstr "" +msgstr "Impuesto a los Consumos Especiales (ICE)" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__in_invoice -msgid "Supplier Document" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__in_refund -msgid "Supplier Refund" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__in_withhold -msgid "Supplier Withhold" -msgstr "" - -#. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 #: model:ir.model,name:l10n_ec.model_account_tax -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__name -#, python-format msgid "Tax" -msgstr "" +msgstr "Impuesto" #. module: l10n_ec #: model:ir.model,name:l10n_ec.model_account_tax_group msgid "Tax Group" -msgstr "" +msgstr "Grupo de impuestos" #. module: l10n_ec #: model:ir.model.fields,help:l10n_ec.field_account_tax__l10n_ec_code_ats #: model:ir.model.fields,help:l10n_ec.field_account_tax_template__l10n_ec_code_ats msgid "Tax Identification Code for the Simplified Transactional Annex" msgstr "" +"Código de Identificación Fiscal para el Anexo Transaccional Simplificado" + +#. module: l10n_ec +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_taxsupport +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_taxsupport +msgid "Tax Support" +msgstr "Sustento Tributario" #. module: l10n_ec #: model:ir.model.fields,help:l10n_ec.field_account_tax__l10n_ec_code_base @@ -410,6 +350,8 @@ msgstr "" msgid "" "Tax declaration code of the base amount prior to the calculation of the tax" msgstr "" +"Código de declaración de impuesto del importe base anterior al cálculo del " +"impuesto" #. module: l10n_ec #: model:ir.model.fields,help:l10n_ec.field_account_tax__l10n_ec_code_applied @@ -418,120 +360,94 @@ msgid "" "Tax declaration code of the resulting amount after the calculation of the " "tax" msgstr "" +"Código de declaración de impuestos de la cantidad resultante después del " +"cálculo del impuesto" #. module: l10n_ec #: model:ir.model,name:l10n_ec.model_account_tax_template msgid "Templates for Taxes" -msgstr "" +msgstr "Plantillas para Impuestos" #. module: l10n_ec -#: model_terms:res.company,invoice_terms_html:l10n_ec.demo_company_ec -msgid "Terms & Conditions" -msgstr "" +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_group__l10n_ec_type +msgid "Type Ecuadorian Tax" +msgstr "Tipo de Impuesto Ecuatoriano" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__amount_total -msgid "Total Amount" -msgstr "" +#: model:l10n_latam.identification.type,name:l10n_ec.ec_unknown +msgid "Unknown" +msgstr "Desconocido" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_group__l10n_ec_type -msgid "Type Ecuadorian Tax" +#. odoo-python +#: code:addons/l10n_ec/models/res_partner.py:0 +#, python-format +msgid "" +"VAT %s is not valid for an Ecuadorian DNI, it must be like this form " +"1234567897" msgstr "" +"Cédula %s no es valida para el DNI de Ecuador, debe ser de esta forma " +"1234567897" #. module: l10n_ec -#: model:l10n_latam.identification.type,name:l10n_ec.ec_unknown -msgid "Unknown" +#. odoo-python +#: code:addons/l10n_ec/models/res_partner.py:0 +#, python-format +msgid "" +"VAT %s is not valid for an Ecuadorian company, it must be like this form " +"1234567897001" msgstr "" +"RUC %s no es valida para una compañía ecuatoriana, debe ser de esta forma " +"1234567897001" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat0 +#: model:account.tax.group,name:l10n_ec.tax_group_vat0 #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__zero_vat msgid "VAT 0%" -msgstr "" +msgstr "IVA 0%" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat12 +#: model:account.tax.group,name:l10n_ec.tax_group_vat_12 #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__vat12 msgid "VAT 12%" -msgstr "" +msgstr "IVA 12%" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat14 +#: model:account.tax.group,name:l10n_ec.tax_group_vat14 #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__vat14 msgid "VAT 14%" -msgstr "" +msgstr "IVA 14%" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat_excempt -msgid "VAT Excempt" +#: model:account.tax.group,name:l10n_ec.tax_group_vat_08 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__vat08 +msgid "VAT 8%" msgstr "" #. module: l10n_ec #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__exempt_vat msgid "VAT Exempt" -msgstr "" +msgstr "Exento de IVA" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat_not_charged +#: model:account.tax.group,name:l10n_ec.tax_group_vat_not_charged #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__not_charged_vat msgid "VAT Not Charged" -msgstr "" +msgstr "IVA no cobrado" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_withhold_vat -#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_vat -msgid "VAT Withhold" -msgstr "" +#: model:account.tax.group,name:l10n_ec.tax_group_withhold_vat_purchase +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_vat_purchase +msgid "VAT Withhold on Purchases" +msgstr "Retención IVA en Compras" #. module: l10n_ec -#: model_terms:ir.ui.view,arch_db:l10n_ec.account_witholding_form_view -msgid "Validate" -msgstr "" +#: model:account.tax.group,name:l10n_ec.tax_group_withhold_vat_sale +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_vat_sale +msgid "VAT Withhold on Sales" +msgstr "Retención IVA en Ventas" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__witholding_id -msgid "Witholding" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__witholding_line_ids -msgid "Witholding Line" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__amount_by_group_wth -#: model:ir.model.fields,field_description:l10n_ec.field_account_move__amount_by_group_wth -#: model:ir.model.fields,field_description:l10n_ec.field_account_payment__amount_by_group_wth -msgid "Witholding amount by group" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_account_move_line__witholding_tax_ids -msgid "Witholding taxes that apply on the base amount" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_move_line__witholding_tax_ids -msgid "Witholdings" -msgstr "" - -#. module: l10n_ec -#: model_terms:res.company,invoice_terms_html:l10n_ec.demo_company_ec -msgid "Your conditions..." -msgstr "" - -#. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_l10n_ec_sri_payment -msgid "l10n.ec.sri.payment" -msgstr "" - -#. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_l10n_ec_witholding -msgid "l10n_ec.witholding" -msgstr "" - -#. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_l10n_ec_witholding_lines -msgid "l10n_ec.witholding.lines" -msgstr "" +#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__internal_type__withhold +msgid "Withhold" +msgstr "Retención" diff --git a/addons/l10n_ec/i18n/l10n_ec.pot b/addons/l10n_ec/i18n/l10n_ec.pot index e91e74b16d1ec0..6b8d3b34ee6044 100644 --- a/addons/l10n_ec/i18n/l10n_ec.pot +++ b/addons/l10n_ec/i18n/l10n_ec.pot @@ -4,10 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.5alpha1+e\n" +"Project-Id-Version: Odoo Server 16.1alpha1+e\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-30 12:58+0000\n" -"PO-Revision-Date: 2021-07-30 12:58+0000\n" +"POT-Creation-Date: 2023-01-02 18:10+0000\n" +"PO-Revision-Date: 2023-01-02 18:10+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,139 +16,148 @@ msgstr "" "Plural-Forms: \n" #. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__witholding_move_id -#, python-format -msgid "Account Move" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__00 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__00 +msgid "00 Special cases whose support does not apply to the above options" msgstr "" #. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__amount -#, python-format -msgid "Amount" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__01 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__01 +msgid "" +"01 Tax credit for VAT declaration (services and goods other than inventories" +" and fixed assets)" msgstr "" #. module: l10n_ec -#: code:addons/l10n_ec/models/account_move.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__l10n_ec_access_key -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__l10n_ec_auth_type -#: model:ir.model.fields,field_description:l10n_ec.field_account_move__l10n_ec_access_key -#: model:ir.model.fields,field_description:l10n_ec.field_account_move__l10n_ec_auth_type -#: model:ir.model.fields,field_description:l10n_ec.field_account_payment__l10n_ec_access_key -#: model:ir.model.fields,field_description:l10n_ec.field_account_payment__l10n_ec_auth_type -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_latam_document_type__l10n_ec_authorization -#, python-format -msgid "Authorization" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__02 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__02 +msgid "" +"02 Cost or Expense for IR declaration (services and goods other than " +"inventories and fixed assets)" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__base -msgid "Base" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__03 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__03 +msgid "03 Fixed Asset - Tax Credit for VAT return" msgstr "" #. module: l10n_ec -#: model:l10n_latam.identification.type,name:l10n_ec.ec_dni -msgid "Ced" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__04 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__04 +msgid "04 Fixed Asset - Cost or Expense for IR declaration" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_ats -#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_ats -msgid "Code ATS" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__05 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__05 +msgid "" +"05 Settlement of travel, lodging and food expenses IR expenses (on behalf of" +" employees and not of the company)" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_applied -#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_applied -msgid "Code applied" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__06 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__06 +msgid "06 Inventory - Tax Credit for VAT return" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_base -#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_base -msgid "Code base" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__07 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__07 +msgid "07 Inventory - Cost or Expense for IR declaration" msgstr "" #. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_res_company -msgid "Companies" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__08 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__08 +msgid "08 Amount paid to request Expense Reimbursement (intermediary)" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__company_id -msgid "Company" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__09 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__09 +msgid "09 Claims Reimbursement" msgstr "" #. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_res_partner -msgid "Contact" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__10 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__10 +msgid "10 Distribution of Dividends, Benefits or Profits" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__create_uid -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__create_uid -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__create_uid -msgid "Created by" +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax__l10n_ec_code_taxsupport__15 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_template__l10n_ec_code_taxsupport__15 +msgid "" +"15 Payments made for own and third-party consumption of digital services" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__create_date -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__create_date -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__create_date -msgid "Created on" +#: model:ir.model,name:l10n_ec.model_account_chart_template +msgid "Account Chart Template" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__currency_id -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__currency_id -msgid "Currency" +#: model:ir.model.fields,help:l10n_ec.field_l10n_latam_document_type__internal_type +msgid "" +"Analog to odoo account.move.move_type but with more options allowing to " +"identify the kind of document we are working with. (not only related to " +"account.move, could be for documents of other models like stock.picking)" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__out_invoice -msgid "Customer Document" +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_latam_document_type__l10n_ec_check_format +msgid "Check Number Format EC" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__out_refund -msgid "Customer Refund" +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__code +msgid "Code" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__out_withhold -msgid "Customer Withhold" +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_ats +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_ats +msgid "Code ATS" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_product_product__witholding_tax_ids -#: model:ir.model.fields,field_description:l10n_ec.field_product_template__witholding_tax_ids -msgid "Customer Witholdings" +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_applied +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_applied +msgid "Code applied" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__code -msgid "Código" +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_base +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_base +msgid "Code base" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_product_product__witholding_tax_ids -#: model:ir.model.fields,help:l10n_ec.field_product_template__witholding_tax_ids -msgid "Default witholding used when selling the product." +#: model:ir.model,name:l10n_ec.model_res_company +msgid "Companies" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__display_name -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__display_name -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__display_name -msgid "Display Name" +#: model:ir.model,name:l10n_ec.model_res_partner +msgid "Contact" msgstr "" #. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__l10n_latam_document_type_id -#, python-format -msgid "Document Type" +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__create_uid +msgid "Created by" +msgstr "" + +#. module: l10n_ec +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__create_date +msgid "Created on" +msgstr "" + +#. module: l10n_ec +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__display_name +msgid "Display Name" msgstr "" #. module: l10n_ec @@ -157,17 +166,15 @@ msgid "Ecuadorian Configuration" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_latam_document_type__l10n_ec_type -msgid "Ecuadorian Type" +#. odoo-python +#: code:addons/l10n_ec/models/l10n_latam_document_type.py:0 +#, python-format +msgid "Ecuadorian Document %s must be like 001-001-123456789" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_account_bank_statement_line__l10n_ec_auth_type -#: model:ir.model.fields,help:l10n_ec.field_account_move__l10n_ec_auth_type -#: model:ir.model.fields,help:l10n_ec.field_account_payment__l10n_ec_auth_type -#: model:ir.model.fields,help:l10n_ec.field_l10n_latam_document_type__l10n_ec_authorization -msgid "" -"Ecuadorian tax authority requires an authorization for certain documents" +#: model:ir.ui.menu,name:l10n_ec.sri_menu +msgid "Ecuadorian SRI" msgstr "" #. module: l10n_ec @@ -176,71 +183,60 @@ msgid "Ecuadorian taxes subtype" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_account_bank_statement_line__amount_by_group_wth -#: model:ir.model.fields,help:l10n_ec.field_account_move__amount_by_group_wth -#: model:ir.model.fields,help:l10n_ec.field_account_payment__amount_by_group_wth -msgid "Edit Tax amounts if you encounter rounding issues." -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_import_journal_creation__l10n_ec_entity #: model:ir.model.fields,field_description:l10n_ec.field_account_journal__l10n_ec_entity msgid "Emission Entity" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_import_journal_creation__l10n_ec_emission #: model:ir.model.fields,field_description:l10n_ec.field_account_journal__l10n_ec_emission msgid "Emission Point" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__hr_advance -msgid "Employee Advance" +#: model:ir.model.fields,field_description:l10n_ec.field_account_journal__l10n_ec_emission_address_id +msgid "Emission address" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_outflows +#: model:account.tax.group,name:l10n_ec.tax_group_outflows #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__outflows_tax msgid "Exchange Outflows" msgstr "" -#. module: l10n_ec -#: model:ir.actions.act_window,name:l10n_ec.action_account_l10n_ec_sri_payment_tree -#: model:ir.ui.menu,name:l10n_ec.menu_action_account_l10n_ec_sri_payment -msgid "Formas de pago SRI" -msgstr "" - #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__id -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__id -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__id msgid "ID" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_l10n_latam_document_type__l10n_ec_type -msgid "Indicates the aplicability of the document" +#. odoo-python +#: code:addons/l10n_ec/models/res_partner.py:0 +#, python-format +msgid "If your identification type is %s, it must be 10 digits" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__out_waybill -msgid "Issued Waybill" +#. odoo-python +#: code:addons/l10n_ec/models/res_partner.py:0 +#, python-format +msgid "If your identification type is %s, it must be 13 digits" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_authorization__third -msgid "Issued by Third Parties" +#: model:ir.model.fields,help:l10n_ec.field_account_tax__l10n_ec_code_taxsupport +#: model:ir.model.fields,help:l10n_ec.field_account_tax_template__l10n_ec_code_taxsupport +msgid "" +"Indicates if the purchase invoice supports tax credit or cost or expenses, " +"conforming table 5 of ATS" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_authorization__own -msgid "Issued by my company" +#: model:ir.model.fields,field_description:l10n_ec.field_l10n_latam_document_type__internal_type +msgid "Internal Type" msgstr "" #. module: l10n_ec #: model:ir.model,name:l10n_ec.model_account_journal -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__journal_id msgid "Journal" msgstr "" @@ -249,36 +245,13 @@ msgstr "" msgid "Journal Entry" msgstr "" -#. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_account_move_line -msgid "Journal Item" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__l10n_ec_is_electronic -#: model:ir.model.fields,field_description:l10n_ec.field_account_move__l10n_ec_is_electronic -#: model:ir.model.fields,field_description:l10n_ec.field_account_payment__l10n_ec_is_electronic -msgid "L10N Ec Is Electronic" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment____last_update -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding____last_update -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines____last_update -msgid "Last Modified on" -msgstr "" - #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__write_uid -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__write_uid -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__write_uid msgid "Last Updated by" msgstr "" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__write_date -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__write_date -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__write_date msgid "Last Updated on" msgstr "" @@ -289,64 +262,55 @@ msgstr "" #. module: l10n_ec #: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_sri_payment__name -msgid "Nombre" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_authorization__none -msgid "None" +msgid "Name" msgstr "" #. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__invoice_id -#, python-format -msgid "Origin Document" -msgstr "" - -#. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_others +#: model:account.tax.group,name:l10n_ec.tax_group_others #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__other -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__other msgid "Others" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__partner_id -msgid "Partner" +#: model_terms:ir.ui.view,arch_db:l10n_ec.view_payment_method_form +#: model_terms:ir.ui.view,arch_db:l10n_ec.view_payment_method_tree +msgid "Payment Method" msgstr "" #. module: l10n_ec -#: code:addons/l10n_ec/models/account_move.py:0 #: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__l10n_ec_sri_payment_id #: model:ir.model.fields,field_description:l10n_ec.field_account_move__l10n_ec_sri_payment_id #: model:ir.model.fields,field_description:l10n_ec.field_account_payment__l10n_ec_sri_payment_id -#, python-format msgid "Payment Method (SRI)" msgstr "" #. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__percent -#, python-format -msgid "Percent" +#: model:ir.actions.act_window,name:l10n_ec.action_account_l10n_ec_sri_payment_tree +#: model:ir.ui.menu,name:l10n_ec.menu_action_account_l10n_ec_sri_payment +msgid "Payment Methods SRI" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_irbpnr +#: model:account.tax.group,name:l10n_ec.tax_group_irbpnr #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__irbpnr msgid "Plastic Bottles (IRBPNR)" msgstr "" #. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_product_template -msgid "Product Template" +#: model:account.tax.group,name:l10n_ec.tax_group_withhold_income_purchase +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_income_purchase +msgid "Profit Withhold on Purchases" +msgstr "" + +#. module: l10n_ec +#: model:account.tax.group,name:l10n_ec.tax_group_withhold_income_sale +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_income_sale +msgid "Profit Withhold on Sales" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_withhold_income -#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_income_tax -msgid "Profit Withhold" +#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__internal_type__purchase_liquidation +msgid "Purchase Liquidation" msgstr "" #. module: l10n_ec @@ -355,13 +319,12 @@ msgid "RUC" msgstr "" #. module: l10n_ec -#: model:ir.actions.act_window,name:l10n_ec.action_account_l10n_ec_witholding_tree -#: model:ir.ui.menu,name:l10n_ec.menu_action_account_l10n_ec_witholding -msgid "Retenciones" +#: model:ir.model,name:l10n_ec.model_l10n_ec_sri_payment +msgid "SRI Payment Method" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_ice +#: model:account.tax.group,name:l10n_ec.tax_group_ice msgid "Special Consumptions (ICE)" msgstr "" @@ -371,25 +334,7 @@ msgid "Special Consumptions Tax (ICE)" msgstr "" #. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__in_invoice -msgid "Supplier Document" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__in_refund -msgid "Supplier Refund" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__l10n_ec_type__in_withhold -msgid "Supplier Withhold" -msgstr "" - -#. module: l10n_ec -#: code:addons/l10n_ec/models/l10n_ec_witholding.py:0 #: model:ir.model,name:l10n_ec.model_account_tax -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__name -#, python-format msgid "Tax" msgstr "" @@ -404,6 +349,12 @@ msgstr "" msgid "Tax Identification Code for the Simplified Transactional Annex" msgstr "" +#. module: l10n_ec +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax__l10n_ec_code_taxsupport +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_template__l10n_ec_code_taxsupport +msgid "Tax Support" +msgstr "" + #. module: l10n_ec #: model:ir.model.fields,help:l10n_ec.field_account_tax__l10n_ec_code_base #: model:ir.model.fields,help:l10n_ec.field_account_tax_template__l10n_ec_code_base @@ -425,46 +376,55 @@ msgid "Templates for Taxes" msgstr "" #. module: l10n_ec -#: model_terms:res.company,invoice_terms_html:l10n_ec.demo_company_ec -msgid "Terms & Conditions" +#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_group__l10n_ec_type +msgid "Type Ecuadorian Tax" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__amount_total -msgid "Total Amount" +#: model:l10n_latam.identification.type,name:l10n_ec.ec_unknown +msgid "Unknown" msgstr "" #. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_tax_group__l10n_ec_type -msgid "Type Ecuadorian Tax" +#. odoo-python +#: code:addons/l10n_ec/models/res_partner.py:0 +#, python-format +msgid "" +"VAT %s is not valid for an Ecuadorian DNI, it must be like this form " +"1234567897" msgstr "" #. module: l10n_ec -#: model:l10n_latam.identification.type,name:l10n_ec.ec_unknown -msgid "Unknown" +#. odoo-python +#: code:addons/l10n_ec/models/res_partner.py:0 +#, python-format +msgid "" +"VAT %s is not valid for an Ecuadorian company, it must be like this form " +"1234567897001" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat0 +#: model:account.tax.group,name:l10n_ec.tax_group_vat0 #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__zero_vat msgid "VAT 0%" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat12 +#: model:account.tax.group,name:l10n_ec.tax_group_vat_12 #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__vat12 msgid "VAT 12%" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat14 +#: model:account.tax.group,name:l10n_ec.tax_group_vat14 #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__vat14 msgid "VAT 14%" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat_excempt -msgid "VAT Excempt" +#: model:account.tax.group,name:l10n_ec.tax_group_vat_08 +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__vat08 +msgid "VAT 8%" msgstr "" #. module: l10n_ec @@ -473,65 +433,24 @@ msgid "VAT Exempt" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_vat_not_charged +#: model:account.tax.group,name:l10n_ec.tax_group_vat_not_charged #: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__not_charged_vat msgid "VAT Not Charged" msgstr "" #. module: l10n_ec -#: model:account.tax.group,name:l10n_ec.ec_tax_group_withhold_vat -#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_vat -msgid "VAT Withhold" -msgstr "" - -#. module: l10n_ec -#: model_terms:ir.ui.view,arch_db:l10n_ec.account_witholding_form_view -msgid "Validate" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding_lines__witholding_id -msgid "Witholding" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_l10n_ec_witholding__witholding_line_ids -msgid "Witholding Line" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_bank_statement_line__amount_by_group_wth -#: model:ir.model.fields,field_description:l10n_ec.field_account_move__amount_by_group_wth -#: model:ir.model.fields,field_description:l10n_ec.field_account_payment__amount_by_group_wth -msgid "Witholding amount by group" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,help:l10n_ec.field_account_move_line__witholding_tax_ids -msgid "Witholding taxes that apply on the base amount" -msgstr "" - -#. module: l10n_ec -#: model:ir.model.fields,field_description:l10n_ec.field_account_move_line__witholding_tax_ids -msgid "Witholdings" -msgstr "" - -#. module: l10n_ec -#: model_terms:res.company,invoice_terms_html:l10n_ec.demo_company_ec -msgid "Your conditions..." -msgstr "" - -#. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_l10n_ec_sri_payment -msgid "l10n.ec.sri.payment" +#: model:account.tax.group,name:l10n_ec.tax_group_withhold_vat_purchase +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_vat_purchase +msgid "VAT Withhold on Purchases" msgstr "" #. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_l10n_ec_witholding -msgid "l10n_ec.witholding" +#: model:account.tax.group,name:l10n_ec.tax_group_withhold_vat_sale +#: model:ir.model.fields.selection,name:l10n_ec.selection__account_tax_group__l10n_ec_type__withhold_vat_sale +msgid "VAT Withhold on Sales" msgstr "" #. module: l10n_ec -#: model:ir.model,name:l10n_ec.model_l10n_ec_witholding_lines -msgid "l10n_ec.witholding.lines" +#: model:ir.model.fields.selection,name:l10n_ec.selection__l10n_latam_document_type__internal_type__withhold +msgid "Withhold" msgstr "" diff --git a/addons/l10n_ec/migrations/3.4/post-migration.py b/addons/l10n_ec/migrations/3.4/post-migration.py new file mode 100644 index 00000000000000..99cfc1f3853976 --- /dev/null +++ b/addons/l10n_ec/migrations/3.4/post-migration.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- + +from odoo import api, SUPERUSER_ID + +def update_withhold_type(env): + # reclassifies withhold taxes into independent tax groups for sales and purchases + env.cr.execute(''' + UPDATE account_tax + SET tax_group_id=t.id FROM (SELECT id FROM account_tax_group WHERE l10n_ec_type='withhold_vat_sale') AS t + WHERE account_tax.id IN (SELECT id FROM account_tax WHERE tax_group_id IN (SELECT id FROM account_tax_group WHERE l10n_ec_type='withhold_vat') AND type_tax_use='sale') + ''') + env.cr.execute(''' + UPDATE account_tax + SET tax_group_id=t.id FROM (SELECT id FROM account_tax_group WHERE l10n_ec_type='withhold_vat_purchase') AS t + WHERE account_tax.id IN (SELECT id FROM account_tax WHERE tax_group_id IN (SELECT id FROM account_tax_group WHERE l10n_ec_type='withhold_vat') AND type_tax_use='purchase') + ''') + env.cr.execute(''' + UPDATE account_tax + SET tax_group_id=t.id FROM (SELECT id FROM account_tax_group WHERE l10n_ec_type='withhold_income_sale') AS t + WHERE account_tax.id IN (SELECT id FROM account_tax WHERE tax_group_id IN (SELECT id FROM account_tax_group WHERE l10n_ec_type='withhold_income_tax') AND type_tax_use='sale') + ''') + env.cr.execute(''' + UPDATE account_tax + SET tax_group_id=t.id FROM (SELECT id FROM account_tax_group WHERE l10n_ec_type='withhold_income_purchase') AS t + WHERE account_tax.id IN (SELECT id FROM account_tax WHERE tax_group_id IN (SELECT id FROM account_tax_group WHERE l10n_ec_type='withhold_income_tax') AND type_tax_use='purchase') + ''') + +def update_type_tax_use(env): + # sets type_tax_use = none for withholding taxes + env.cr.execute(''' + UPDATE account_tax + SET type_tax_use = 'none' + WHERE tax_group_id IN (SELECT id FROM account_tax_group WHERE l10n_ec_type IN ('withhold_income_purchase','withhold_vat_purchase','withhold_income_sale','withhold_vat_sale')) + ''') + +def update_tax_repartition_line_vat_withhold(env): + # For tax repartition lines in vat withhold taxes, replace factor_percent=12% with factor_percent=100% + env.cr.execute(''' + --for invoice_tax_id + UPDATE account_tax_repartition_line + SET factor_percent = 100 + WHERE factor_percent = 12 + AND repartition_type = 'tax' + AND invoice_tax_id in ( + SELECT id + FROM account_tax + WHERE country_id = (SELECT id FROM res_country WHERE code = 'EC' LIMIT 1) --Country is Ecuador) + AND tax_group_id IN ( + SELECT id FROM account_tax_group WHERE l10n_ec_type IN ('withhold_vat_sale', 'withhold_vat_purchase') + ) + ) + ''') + env.cr.execute(''' + --for refund_tax_id + UPDATE account_tax_repartition_line + SET factor_percent = 100 + WHERE factor_percent = 12 + AND repartition_type = 'tax' + AND refund_tax_id in ( + SELECT id + FROM account_tax + WHERE country_id = (SELECT id FROM res_country WHERE code = 'EC' LIMIT 1) --Country is Ecuador) + AND tax_group_id IN ( + SELECT id FROM account_tax_group WHERE l10n_ec_type IN ('withhold_vat_sale','withhold_vat_purchase') + ) + ) + ''') + +def migrate(cr, version): + env = api.Environment(cr, SUPERUSER_ID, {}) + update_withhold_type(env) + update_type_tax_use(env) + update_tax_repartition_line_vat_withhold(env) diff --git a/addons/l10n_ec/models/__init__.py b/addons/l10n_ec/models/__init__.py index e7991db73a20b9..41c8372cea439a 100644 --- a/addons/l10n_ec/models/__init__.py +++ b/addons/l10n_ec/models/__init__.py @@ -9,3 +9,4 @@ from . import account_tax_group from . import res_company from . import account_journal +from . import account_chart_template diff --git a/addons/l10n_ec/models/account_chart_template.py b/addons/l10n_ec/models/account_chart_template.py new file mode 100644 index 00000000000000..0dcc381ec8997c --- /dev/null +++ b/addons/l10n_ec/models/account_chart_template.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models + + +class AccountChartTemplate(models.Model): + _inherit = "account.chart.template" + + def _prepare_all_journals(self, acc_template_ref, company, journals_dict=None): + res = super()._prepare_all_journals(acc_template_ref, company, journals_dict=journals_dict) + for journal_values in res: + if journal_values.get('type') == 'sale' and company.account_fiscal_country_id.code == 'EC': + journal_values.update({ + 'name': f"001-001 {journal_values['name']}", + 'l10n_ec_entity': '001', + 'l10n_ec_emission': '001', + 'l10n_ec_emission_address_id': company.partner_id.id, + }) + + return res diff --git a/addons/l10n_ec/models/account_journal.py b/addons/l10n_ec/models/account_journal.py index 6ee5e541317eb1..59c3e59b6758bc 100644 --- a/addons/l10n_ec/models/account_journal.py +++ b/addons/l10n_ec/models/account_journal.py @@ -1,18 +1,25 @@ -from odoo import fields, models +from odoo import api, fields, models class AccountJournal(models.Model): - _inherit = "account.journal" - l10n_ec_entity = fields.Char(string="Emission Entity", size=3, default="001") - l10n_ec_emission = fields.Char(string="Emission Point", size=3, default="001") + l10n_ec_require_emission = fields.Boolean(string='Require Emission', compute='_compute_l10n_ec_require_emission') + l10n_ec_entity = fields.Char(string="Emission Entity", size=3, copy=False) + l10n_ec_emission = fields.Char(string="Emission Point", size=3, copy=False) l10n_ec_emission_address_id = fields.Many2one( comodel_name="res.partner", string="Emission address", domain="['|', ('id', '=', company_partner_id), '&', ('id', 'child_of', company_partner_id), ('type', '!=', 'contact')]", ) + @api.depends('type', 'l10n_latam_use_documents') + def _compute_l10n_ec_require_emission(self): + for journal in self: + # True iff an entity and emission point must be set on the journal + journal.l10n_ec_require_emission = journal.type == 'sale' and journal.country_code == 'EC' and journal.l10n_latam_use_documents + + # NOTE: Removed in master as it has no use l10n_ec_emission_type = fields.Selection( string="Emission type", selection=[ diff --git a/addons/l10n_ec/models/account_move.py b/addons/l10n_ec/models/account_move.py index 9e2de178520d5b..129902da51d2f4 100644 --- a/addons/l10n_ec/models/account_move.py +++ b/addons/l10n_ec/models/account_move.py @@ -2,7 +2,6 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models, api -from odoo.addons.l10n_ec.models.res_partner import verify_final_consumer _DOCUMENTS_MAPPING = { "01": [ @@ -46,9 +45,9 @@ 'ec_dt_344' ], "04": [ + 'ec_dt_01', 'ec_dt_04', 'ec_dt_05', - 'ec_dt_18', 'ec_dt_41', 'ec_dt_44', 'ec_dt_47', @@ -63,9 +62,9 @@ 'ec_dt_373' ], "05": [ + 'ec_dt_01', 'ec_dt_04', 'ec_dt_05', - 'ec_dt_18', 'ec_dt_41', 'ec_dt_44', 'ec_dt_47', @@ -76,9 +75,9 @@ 'ec_dt_373' ], "06": [ + 'ec_dt_01', 'ec_dt_04', 'ec_dt_05', - 'ec_dt_18', 'ec_dt_41', 'ec_dt_44', 'ec_dt_47', @@ -89,9 +88,9 @@ 'ec_dt_373' ], "07": [ + 'ec_dt_01', 'ec_dt_04', 'ec_dt_05', - 'ec_dt_18' ], "09": [ 'ec_dt_01', @@ -134,44 +133,30 @@ class AccountMove(models.Model): string="Payment Method (SRI)", ) - def _get_l10n_ec_identification_type(self): + def _get_l10n_ec_ats_identification_type(self): + # Helps filter out document types based on subset of Table 2 of SRI's ATS specification self.ensure_one() - move = self - it_ruc = self.env.ref("l10n_ec.ec_ruc", False) - it_dni = self.env.ref("l10n_ec.ec_dni", False) - it_passport = self.env.ref("l10n_ec.ec_passport", False) - is_final_consumer = verify_final_consumer(move.partner_id.commercial_partner_id.vat) - is_ruc = move.partner_id.commercial_partner_id.l10n_latam_identification_type_id.id == it_ruc.id - is_dni = move.partner_id.commercial_partner_id.l10n_latam_identification_type_id.id == it_dni.id - is_passport = move.partner_id.commercial_partner_id.l10n_latam_identification_type_id.id == it_passport.id - l10n_ec_is_exportation = move.partner_id.commercial_partner_id.country_id.code != 'EC' + idtype = self.partner_id._l10n_ec_get_identification_type() identification_code = False - if move.move_type in ("in_invoice", "in_refund"): - if is_ruc: + if self.move_type in ("in_invoice", "in_refund"): + if idtype == 'ruc': # includes final consumer identification_code = "01" - elif is_dni: + elif idtype == 'cedula': identification_code = "02" - else: + elif idtype in ['foreign', 'passport']: identification_code = "03" - elif move.move_type in ("out_invoice", "out_refund"): - if not l10n_ec_is_exportation: - if is_final_consumer: - identification_code = "07" - elif is_ruc: - identification_code = "04" - elif is_dni: - identification_code = "05" - elif is_passport: - identification_code = "06" - else: - if is_ruc: - identification_code = "20" - elif is_dni: - identification_code = "21" - else: - identification_code = "09" + elif self.move_type in ("out_invoice", "out_refund"): + if idtype == 'ruc': # includes final consumer + identification_code = "04" + elif idtype == 'cedula': + identification_code = "05" + elif idtype in ['foreign', 'passport']: + identification_code = "06" return identification_code + # NOTE: For backward compatibility, removed in master + _get_l10n_ec_identification_type = _get_l10n_ec_ats_identification_type + @api.model def _get_l10n_ec_documents_allowed(self, identification_code): documents_allowed = self.env['l10n_latam.document.type'] @@ -181,28 +166,16 @@ def _get_l10n_ec_documents_allowed(self, identification_code): documents_allowed |= document_allowed return documents_allowed - def _get_l10n_ec_internal_type(self): - self.ensure_one() - internal_type = self.env.context.get("internal_type", "invoice") - if self.move_type in ("out_refund", "in_refund"): - internal_type = "credit_note" - if self.debit_origin_id: - internal_type = "debit_note" - return internal_type - def _get_l10n_latam_documents_domain(self): self.ensure_one() - if self.journal_id.company_id.account_fiscal_country_id != self.env.ref('base.ec') or not \ - self.journal_id.l10n_latam_use_documents: - return super()._get_l10n_latam_documents_domain() - domain = [ - ('country_id.code', '=', 'EC'), - ('internal_type', 'in', ['invoice', 'debit_note', 'credit_note', 'invoice_in']) - ] - internal_type = self._get_l10n_ec_internal_type() - allowed_documents = self._get_l10n_ec_documents_allowed(self._get_l10n_ec_identification_type()) - if internal_type and allowed_documents: - domain.append(("id", "in", allowed_documents.filtered(lambda x: x.internal_type == internal_type).ids)) + domain = super()._get_l10n_latam_documents_domain() + if self.country_code == 'EC' and self.journal_id.l10n_latam_use_documents: + if self.debit_origin_id: # show/hide the debit note document type + domain.extend([('internal_type', '=', 'debit_note')]) + elif self.move_type in ('out_invoice', 'in_invoice'): + domain.extend([('internal_type', '=', 'invoice')]) + allowed_documents = self._get_l10n_ec_documents_allowed(self._get_l10n_ec_ats_identification_type()) + domain.extend([('id', 'in', allowed_documents.ids)]) return domain def _get_ec_formatted_sequence(self, number=0): @@ -225,17 +198,10 @@ def _get_starting_sequence(self): return super()._get_starting_sequence() def _get_last_sequence_domain(self, relaxed=False): - l10n_latam_document_type_model = self.env['l10n_latam.document.type'] where_string, param = super(AccountMove, self)._get_last_sequence_domain(relaxed) - if self.country_code == "EC" and self.l10n_latam_use_documents and self.move_type in ( - "out_invoice", - "out_refund", - "in_invoice", - "in_refund", - ): - where_string, param = super(AccountMove, self)._get_last_sequence_domain(False) - internal_type = self._get_l10n_ec_internal_type() - document_types = l10n_latam_document_type_model.search([ + if self.country_code == "EC" and self.l10n_latam_use_documents: + internal_type = self.l10n_latam_document_type_id.internal_type + document_types = self.env['l10n_latam.document.type'].search([ ('internal_type', '=', internal_type), ('country_id.code', '=', 'EC'), ]) diff --git a/addons/l10n_ec/models/account_tax_group.py b/addons/l10n_ec/models/account_tax_group.py index 2510084fb6a088..4f7bb689c95bfb 100644 --- a/addons/l10n_ec/models/account_tax_group.py +++ b/addons/l10n_ec/models/account_tax_group.py @@ -4,17 +4,22 @@ from odoo import fields, models _TYPE_EC = [ + ("vat08", "VAT 8%"), ("vat12", "VAT 12%"), ("vat14", "VAT 14%"), ("zero_vat", "VAT 0%"), ("not_charged_vat", "VAT Not Charged"), ("exempt_vat", "VAT Exempt"), - ("withhold_vat", "VAT Withhold"), - ("withhold_income_tax", "Profit Withhold"), ("ice", "Special Consumptions Tax (ICE)"), ("irbpnr", "Plastic Bottles (IRBPNR)"), + ("withhold_vat_sale", "VAT Withhold on Sales"), + ("withhold_vat_purchase", "VAT Withhold on Purchases"), + ("withhold_income_sale", "Profit Withhold on Sales"), + ("withhold_income_purchase", "Profit Withhold on Purchases"), ("outflows_tax", "Exchange Outflows"), ("other", "Others"), + ("withhold_vat", "VAT Withhold (Deprecated)"), # removed in master + ("withhold_income_tax", "Profit Withhold (Deprecated)"), # removed in master ] diff --git a/addons/l10n_ec/models/l10n_latam_document_type.py b/addons/l10n_ec/models/l10n_latam_document_type.py index eb6cfcef24101e..8ff2f6eae8caab 100644 --- a/addons/l10n_ec/models/l10n_latam_document_type.py +++ b/addons/l10n_ec/models/l10n_latam_document_type.py @@ -11,6 +11,7 @@ class L10nLatamDocumentType(models.Model): internal_type = fields.Selection( selection_add=[ ("purchase_liquidation", "Purchase Liquidation"), + ("withhold", "Withhold"), ] ) diff --git a/addons/l10n_ec/models/res_partner.py b/addons/l10n_ec/models/res_partner.py index fda2490d62149c..cb6c00db4322a9 100644 --- a/addons/l10n_ec/models/res_partner.py +++ b/addons/l10n_ec/models/res_partner.py @@ -49,9 +49,28 @@ def check_vat(self): error_message = "" if partner.l10n_latam_identification_type_id.id == it_dni.id: error_message = _("VAT %s is not valid for an Ecuadorian DNI, " - "it must be like this form 0915068258") % partner.vat + "it must be like this form 1234567897") % partner.vat if partner.l10n_latam_identification_type_id.id == it_ruc.id: error_message = _("VAT %s is not valid for an Ecuadorian company, " - "it must be like this form 0993143790001") % partner.vat + "it must be like this form 1234567897001") % partner.vat raise ValidationError(error_message) return super(ResPartner, self - ecuadorian_partners).check_vat() + + def _l10n_ec_get_identification_type(self): + """Maps Odoo identification types to Ecuadorian ones. + Useful for document type domains, electronic documents, ats, others. + """ + self.ensure_one() + + def id_type_in(*args): + return any([self.l10n_latam_identification_type_id == self.env.ref(arg) for arg in args]) + + if id_type_in('l10n_ec.ec_dni'): + return 'cedula' # DNI + elif id_type_in('l10n_ec.ec_ruc'): + return 'ruc' # RUC + elif id_type_in('l10n_latam_base.it_pass'): + return 'passport' # Pasaporte + elif id_type_in('l10n_latam_base.it_fid', 'l10n_latam_base.it_vat') \ + or self.l10n_latam_identification_type_id.country_id != self.env.ref('base.ec'): + return 'foreign' # Identificacion del exterior diff --git a/addons/l10n_ec/views/account_journal_view.xml b/addons/l10n_ec/views/account_journal_view.xml index 7427566b22c303..f7de01eeb619e6 100644 --- a/addons/l10n_ec/views/account_journal_view.xml +++ b/addons/l10n_ec/views/account_journal_view.xml @@ -7,19 +7,27 @@ + + placeholder="001" + attrs="{'invisible':[('l10n_ec_require_emission', '!=', True)], + 'required':[('l10n_ec_require_emission', '=', True)]}" + /> + placeholder="001" + attrs="{'invisible':[('l10n_ec_require_emission', '!=', True)], + 'required':[('l10n_ec_require_emission', '=', True)]}" + /> - + attrs="{'invisible':[('l10n_ec_require_emission', '!=', True)], + 'required':[('l10n_ec_require_emission', '=', True)]}" + context="{'default_parent_id': company_partner_id, + 'default_type': 'invoice', + 'form_view_ref': 'base.view_partner_address_form' + }" + /> - \ No newline at end of file + diff --git a/addons/l10n_ec/views/l10n_ec_sri_payment.xml b/addons/l10n_ec/views/l10n_ec_sri_payment.xml index 3915e42ef733a4..160975f0572954 100644 --- a/addons/l10n_ec/views/l10n_ec_sri_payment.xml +++ b/addons/l10n_ec/views/l10n_ec_sri_payment.xml @@ -1,12 +1,30 @@ - - l10n.ec.sri.payment.form + + + l10n_ec.sri.payment.form l10n_ec.sri.payment + form - - +
+ + + + + + +
+
+
+ + + l10n_ec.sri.payment.tree + l10n_ec.sri.payment + tree + + + @@ -15,8 +33,9 @@ Payment Methods SRI l10n_ec.sri.payment tree,form +
+ groups="account.group_account_manager" parent="l10n_ec.sri_menu" sequence="3"/>
diff --git a/addons/l10n_ec/views/root_sri_menu.xml b/addons/l10n_ec/views/root_sri_menu.xml new file mode 100644 index 00000000000000..3ae2b0eee0929a --- /dev/null +++ b/addons/l10n_ec/views/root_sri_menu.xml @@ -0,0 +1,8 @@ + + + + diff --git a/addons/l10n_latam_invoice_document/models/account_move.py b/addons/l10n_latam_invoice_document/models/account_move.py index fdeadd2f54a3bd..caee7fb559e151 100644 --- a/addons/l10n_latam_invoice_document/models/account_move.py +++ b/addons/l10n_latam_invoice_document/models/account_move.py @@ -85,6 +85,12 @@ def _compute_l10n_latam_manual_document_number(self): remaining = self - recs_with_journal_id remaining.l10n_latam_manual_document_number = False + def _compute_made_sequence_hole(self): + # Avoid showing red flag entries when those are purchase invoices + super()._compute_made_sequence_hole() + for move in self.filtered(lambda m: m.l10n_latam_manual_document_number): + move.made_sequence_hole = False + def _is_manual_document_number(self): return self.journal_id.type == 'purchase'