diff --git a/addons/l10n_cl/__init__.py b/addons/l10n_cl/__init__.py
index fdcb151b02b..be9f4fab00a 100644
--- a/addons/l10n_cl/__init__.py
+++ b/addons/l10n_cl/__init__.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-# Copyright (c) 2011 Cubic ERP - Teradata SAC. (http://cubicerp.com).
+from . import models
diff --git a/addons/l10n_cl/__manifest__.py b/addons/l10n_cl/__manifest__.py
index cf68e6d1567..10557639b55 100644
--- a/addons/l10n_cl/__manifest__.py
+++ b/addons/l10n_cl/__manifest__.py
@@ -1,25 +1,49 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-# Copyright (c) 2011 Cubic ERP - Teradata SAC. (http://cubicerp.com).
-
+# Copyright (c) 2019 - Blanco Martín & Asociados. https://www.bmya.cl
{
'name': 'Chile - Accounting',
- 'version': '2.0',
+ 'version': '13.0.3.0.0',
'description': """
Chilean accounting chart and tax localization.
-==============================================
Plan contable chileno e impuestos de acuerdo a disposiciones vigentes
-
""",
- 'author': 'Cubic ERP',
+ 'author': 'Blanco Martín & Asociados',
'category': 'Localization',
- 'depends': ['account'],
+ 'depends': [
+ 'contacts',
+ 'base_address_city',
+ 'base_vat',
+ 'l10n_latam_base',
+ 'l10n_latam_invoice_document',
+ 'uom',
+ ],
'data': [
+ 'views/account_journal_view.xml',
+ 'views/account_move_view.xml',
+ 'views/account_tax_view.xml',
+ 'views/ir_sequence_view.xml',
+ 'views/res_bank_view.xml',
+ 'views/res_country_view.xml',
+ 'views/res_partner.xml',
'data/l10n_cl_chart_data.xml',
- 'data/account_data.xml',
'data/account_tax_report_data.xml',
+ 'data/account_tax_group_data.xml',
+ 'data/account_tax_tags_data.xml',
'data/account_tax_data.xml',
+ 'data/l10n_latam_identification_type_data.xml',
+ 'data/l10n_latam.document.type.csv',
+ 'data/menuitem_data.xml',
+ 'data/product_data.xml',
+ 'data/uom_data.xml',
+ 'data/res.currency.csv',
+ 'data/res.bank.csv',
+ 'data/res.country.csv',
+ 'data/res_partner.xml',
+ 'data/account_fiscal_template.xml',
'data/account_chart_template_data.xml',
],
+ 'demo': [
+ 'demo/partner_demo.xml',
+ ]
}
diff --git a/addons/l10n_cl/data/account_fiscal_template.xml b/addons/l10n_cl/data/account_fiscal_template.xml
new file mode 100644
index 00000000000..49d7f9cdb29
--- /dev/null
+++ b/addons/l10n_cl/data/account_fiscal_template.xml
@@ -0,0 +1,59 @@
+
+
+
+
+ Compras - destinadas a generar operaciones no gravadas o exentas
+
+
+
+
+
+
+
+
+ Compras - Facturas de proveedores registrados fuera de plazo
+
+
+
+
+
+
+
+
+ Compras - Gastos rechazados
+
+
+
+
+
+
+
+
+ Compras - Entregas gratuitas (premios, bonificaciones, etc.) recibidos
+
+
+
+
+
+
+
+
+ Compras - Otros
+
+
+
+
+
+
+
+
+ Compras - Activo Fijo
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/data/account_tax_data.xml b/addons/l10n_cl/data/account_tax_data.xml
index 44f2c3d81bb..3602d83df1f 100644
--- a/addons/l10n_cl/data/account_tax_data.xml
+++ b/addons/l10n_cl/data/account_tax_data.xml
@@ -9,31 +9,30 @@
19
percent
sale
+ 14
@@ -45,31 +44,208 @@
19
percent
purchase
+ 14
+
+
+
+
+ Retención de Segunda Categoría
+ Retención de Segunda Categoría
+ -10
+
+ percent
+ purchase
+ 15
+
+
+
+
+
+
+
+ Específico Compra
+ Especifico
+ 63
+ percent
+ purchase
+ 29
+
+
+
+
+
+
+
+
+ IVA Compra - 19% Activo Fijo
+ IVA 19% ActF
+ 19
+ percent
+ purchase
+ 14
+
+
+
+
+
+
+
+
+ IVA Compra - 19% Activo Fijo Uso Común
+ IVA 19% ActFUC
+ 19
+ percent
+ purchase
+ 14
+
+
+
+
+
+
+
+
+ IVA Compra - 19% Activo Fijo No Recuperable
+ IVA 19% ActFNR
+ 19
+ percent
+ purchase
+ 14
+
+
+
+
diff --git a/addons/l10n_cl/data/account_tax_group_data.xml b/addons/l10n_cl/data/account_tax_group_data.xml
new file mode 100644
index 00000000000..9d8cf4f6f78
--- /dev/null
+++ b/addons/l10n_cl/data/account_tax_group_data.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+ IVA 19%
+
+
+
+ Impuestos Específicos
+
+
+
+ ILA
+
+
+
+ Retención de 2da Categoría
+
+
+
+ Retenciones
+
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/data/account_tax_report_data.xml b/addons/l10n_cl/data/account_tax_report_data.xml
index 399d3afc11f..5c76c5ccb8c 100644
--- a/addons/l10n_cl/data/account_tax_report_data.xml
+++ b/addons/l10n_cl/data/account_tax_report_data.xml
@@ -1,146 +1,182 @@
-
- Impuestos Directos a Pagar
+
+ Base Imponible Ventas
+ Base Imponible Ventas
+
+ Ventas Netas Gravadas con IVA
+ Ventas Netas Gravadas con IVA
+
+
+
+
+
+ Ventas Exentas
+ Ventas Exentas
+
+
+
+
+
Impuesto a la Renta Primera Categoría a Pagar
Impuesto a la Renta Primera Categoría a Pagar
-
-
-
-
-
-
- Impuesto General a las Ventas (IVA) Total a Pagar
-
-
-
-
-
- Impuesto Pagado
-
-
-
-
-
-
- Impuesto Pagado IVA
- Impuesto Pagado IVA
-
-
-
-
-
-
- Impuesto Pagado de Exonerados al IVA
-
-
-
-
-
-
- Impuesto Pagado Fuera de Ámbito
-
-
-
-
-
-
- Impuesto Cobrado
-
-
-
-
-
-
- Impuesto Cobrado IVA
- Impuesto Cobrado IVA
-
-
-
-
-
-
- Impuesto Cobrado de Exonerados al IVA
-
-
-
-
-
-
- Impuesto Cobrado Fuera de Ámbito
-
-
-
-
-
-
- Base Imponible
-
-
-
-
-
- Base Imponible - Ventas
-
-
-
-
-
-
- Ventas Gravadas con IVA
- Ventas Gravadas con IVA
-
-
-
-
-
-
- Ventas NO Gravadas (Exoneradas)
-
- Ventas Gravadas Fuera de Ámbito
-
-
-
-
-
-
- Base Imponible - Compras
-
-
-
-
-
-
- Compras Gravadas con IVA
- Compras Gravadas con IVA
+
+ Impuesto Originado por la Venta
+ Impuesto Originado por la Venta
-
-
- Compras NO Gravadas (Exoneradas)
-
-
+
+ IVA Debito Fiscal
+ IVA Debito Fiscal
+
-
- Compras Gravadas Fuera de Ámbito
-
-
+
+ PPM
+ PPM
+
+
+ Compras Netas Gravadas Con IVA (recuperable)
+ Compras Netas Gravadas Con IVA (recuperable)
+
+
+
+
+
+ Compra Netas Gravadas Con IVA Uso Comun
+ Compra Netas Gravadas Con IVA Uso Comun
+
+
+
+
+
+ Compras IVA No Recuperable
+ Compras IVA No Recuperable
+
+
+
+
+
+ Compras De Supermercado
+ Compras De Supermercado
+
+
+
+
+
+ Compras de Activo Fijo
+ Compras de Activo Fijo
+
+
+
+
+
+ Compras de Activo Fijo Uso Común
+ Compras de Activo Fijo Uso Común
+
+
+
+
+
+ Compras de Activo Fijo No Recuperable
+ Compras de Activo Fijo No Recuperable
+
+
+
+
+
+ Compras No Gravadas Con IVA
+ Compras No Gravadas Con IVA
+
+
+
+
+
+ Impuestos Pagados en la Compra
+ Impuestos Pagados en la Compra
+
+
+
+
+
+ IVA Pagado Compras Recuperables
+ IVA Pagado Compras Recuperables
+
+
+
+
+
+ IVA Pagado Compras Uso Común
+ IVA Pagado Compras Uso Común
+
+
+
+
+
+ IVA Pagado No Recuperable
+ IVA Pagado No Recuperable
+
+
+
+
+
+ IVA Pagado Compras Supermercado
+ IVA Pagado Compras Supermercado
+
+
+
+
+
+ Compras Activo Fijo
+ Compras Activo Fijo
+
+
+
+
+
+ Compras Activo Fijo Uso Común
+ Compras Activo Fijo Uso Común
+
+
+
+
+
+ Compras Activo Fijo No Recuperables
+ Compras Activo Fijo No Recuperables
+
+
+
+
+
+ Retención Segunda Categoría
+ Retención Segunda Categoría
+
+
+
+
+
+ Base Retención Segunda Categoría
+ Base Retención Segunda Categoría
+
+
+
+
+
diff --git a/addons/l10n_cl/data/account_tax_tags_data.xml b/addons/l10n_cl/data/account_tax_tags_data.xml
new file mode 100644
index 00000000000..3ebbcb5e5cd
--- /dev/null
+++ b/addons/l10n_cl/data/account_tax_tags_data.xml
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+ Ventas - Monto IVA
+ taxes
+
+
+
+
+ Ventas - IVA Fuera de Plazo
+ taxes
+
+
+
+
+ Ventas - IVA Propio
+ taxes
+
+
+
+
+ Ventas - IVA Terceros
+ taxes
+
+
+
+
+ Ventas - IVA Ley 18211
+ taxes
+
+
+
+
+ Ventas - Otros Impuestos
+ taxes
+
+
+
+
+ Ventas - IVA Retenido Total
+ taxes
+
+
+
+
+ Ventas - IVA Retenido Parcial
+ taxes
+
+
+
+
+ Ventas - Credito Especial 65% Empresas Constructoras
+ taxes
+
+
+
+
+ Ventas - Depósito de Envases
+ taxes
+
+
+
+
+ Ventas - IVA Comisiones y Otros Cargos
+ taxes
+
+
+
+
+ Ventas - IVA No Retenido
+ taxes
+
+
+
+
+ Compras - Monto IVA Recuperable
+ taxes
+
+
+
+
+ Compras - Monto IVA Activo Fijo
+ taxes
+
+
+
+
+ Compras - Monto IVA Activo Fijo (Uso Común)
+ taxes
+
+
+
+
+ Compras - Monto IVA Activo Fijo (Uso Común)
+ taxes
+
+
+
+
+
+ Compras - Monto IVA No Recuperable
+ taxes
+
+
+
+
+ Compras - Monto IVA Uso Comun
+ taxes
+
+
+
+ Compras - Monto IVA Compras Supermercado
+ taxes
+
+
+
+
+ Compras - Monto Otros Impuestos
+ taxes
+
+
+
+
+ Compras - Impuestos Sin Crédito
+ taxes
+
+
+
+
+ Compras - IVA No Retenido Fac de compra
+ taxes
+
+
+
+
+ Compras - Credito Imp Art 42
+ taxes
+
+
+
+
+ Compras - Impuesto Sin Credito
+ taxes
+
+
+
+
+ Compras - IVA No Retenido
+ taxes
+
+
+
+
+ Compras - Impuesto a Vehículos Automotores
+ taxes
+
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/data/l10n_cl_chart_data.xml b/addons/l10n_cl/data/l10n_cl_chart_data.xml
index 95500552dcd..4f4699be1df 100644
--- a/addons/l10n_cl/data/l10n_cl_chart_data.xml
+++ b/addons/l10n_cl/data/l10n_cl_chart_data.xml
@@ -1,948 +1,1722 @@
-
+
+
+
+
+ Ventas - Total Monto Exento o No Gravado
+ accounts
+
+
+
+ Ventas - Total Monto Neto
+ accounts
+
+
+
+
+ Ventas - Total Valor Neto Comisiones y Otros Cargos
+ accounts
+
+
+
+
+ Ventas - Total Valor Neto Comisiones y Otros Cargos No Afectos
+ accounts
+
+
+
+
+ Ventas - Total Monto No Facturable
+ accounts
+
+
+
+
+ Ventas - Exento Ventas de Pasajes Nacional
+ accounts
+
+
+
+
+ Ventas - Exento Ventas de Pasajes Internacional
+ accounts
+
+
+
+
+
+ Compras - Total Monto Exento o No Gravado
+ accounts
+
+
+
+
+ Compras - Total Monto Neto
+ accounts
+
+
+
+
+ Compras - Total Monto Neto Uso Común
+ accounts
+
+
+
+
+ Compras - Total Monto Neto No Recuperable
+ accounts
+
+
+
+
+ Compras - Total Monto Neto Compras de Supermercado
+ accounts
+
+
+
+
+
+ Compras - Total Monto Neto Activo Fijo
+ accounts
+
+
+
+
+
+ Compras - Total Tabacos Manufacturados Puros
+ accounts
+
+
+
+
+ Compras - Total Tabacos Manufacturados Cigarrillos
+ accounts
+
+
+
+
+ Compras - Total Tabacos Manufacturados Elaborados
+ accounts
+
+
+
+ Remantente de Crédito Fiscal
+ accounts
+
+
+
+ Impuesto Unico Trabajadores
+ accounts
+
+
+
+
+ Honorarios - Montos Sujetos a Retención Renta 2 Categoría
+ accounts
+
-
Cuentas No Clasificadas
- Chile - Plan de Cuentas
- 114
- 111
- 117
- 6
-
+ Chile - Plan de Cuentas
+ 1101
+ 1101
+ 117
+ 6
+
+
-
-
-
- Activo Circulante - Fondos fijos
- 113
-
+
+ 117000
+ Cuenta de Transferencia
+
-
- Activo Circulante - Valores a Depositar
- 115
-
+
+ 110210
+ Depósitos en Divisas
+
-
- Activo Circulante - Recaudaciones a Depositar
- 116
-
+
+ 110220
+ Acciones
+
-
- Documentos por Cobrar / Deudores por Ventas
- 121
-
+
+ 110310
+ Clientes
- 1
+
-
- Documentos por Cobrar / Deudores por Ventas (PoS)
- 121.01
+
+ 110320
+ Anticipo Proveedores
+
+
+
+
+
+ 110410
+ Cheques a Fecha Por Cobrar
+
+
+
+
+
+
+ 110420
+ Deudores Varios
- 1
+
-
- Documentos por Cobrar / Deudores Morosos
- 122
-
+
+ 110421
+ Deudores por Ventas (Pos)
- 1
+
-
- Documentos por Cobrar / Deudores en Gestión Judicial
- 123
+
+
+ 110430
+ Boletas en Garantía
+
+
+
+
+
+ 110440
+ Letras en Cartera
+
+
+
+
+
+
+ 110450
+ Documentos Protestados
+
+
+
+
+
+
+ 110510
+ Anticipo de Sueldo
+
+
+
+
+
+
+ 110520
+ Préstamos otorgados
+
+
+
+
+
+
+ 110530
+ Anticipos de Viáticos
+
+
+
+
+
+
+ 110540
+ Fondos x Rendir
+
+
+
+
+
+
+ 110550
+ Anticipo de Honorarios
+
+
+
+
+
+
+ 110560
+ Anticipo de Aguinaldo
+
+
+
+
+
+
+ 110570
+ Asignación Familiar
+
+
+
+
+
+
+ 110580
+ Anticipo de Impuestos
+
+
+
+
+
+
+ 110585
+ Alquileres Pagados por Adelantado
+
+
+
+
+
+
+ 110590
+ Intereses Pagados por Adelantado
+
+
+
+
+
+
+ 110610
+ Mercaderías
+
+
+
+
+
+
+ 110612
+ Materia Prima
+
+
+
+
+
+
+ 110615
+ Materiales
+
+
+
+
+
+
+ 110620
+ Insumos
+
+
+
+
+
+
+ 110625
+ Equipos
+
+
+
+
+
+
+ 110630
+ Repuestos
+
+
+
+
+
+
+ 110640
+ Existencias en Tránsito
+
+
+
+
+
+
+ 110650
+ Productos Fabricados
+
+
+
+
+
+
+ 110660
+ Productos En Proceso
+
+
+
+
+
+
+ 110670
+ Envases
+
+
+
+
+
+
+ 110710
+ IVA Crédito Fiscal
+
+
+
+
+
+
+ 110720
+ Remanente Crédito Fiscal
+
+
+
+
+
+
+
+ 110730
+ Crédito por Activo Fijo
+
+
+
+
+
+
+ 110740
+ P.P.M. / Art 33 BIS
+
-
- Documentos por Cobrar / Deudores Varios
- 124
-
+
+ 110750
+ Crédito Sence
+
+
+
+
+
+
+ 110810
+ Anticipos Comercio Exterior
+
+
+
+
+
+
+ 110820
+ Gastos Anticipados
+
+
+
+
+
+
+ 110830
+ Organización y Puesta en Marcha
+
+
+
+
+
+
+ 110910
+ Retiros Socios
+
+
+
+
+
+
+ 110920
+ Retiros Reinversión
+
+
+
+
+
+
+ 111010
+ Gastos Reorganización
+
+
+
+
+
+
+ 111110
+ Cuentas Obligadas Socios
+
+
+
+
+
+
+ 111210
+ Gastos Tributarios
+
+
+
+
+
+
+ 111310
+ Cuenta Importaciones
+
+
+
+
+
+
+ 111410
+ Gastos Rechazados
+
+
+
+
+
+
+ 120110
+ Deudores Morosos
+
-
- Documentos por Cobrar / (-) Previsión para Incobrables
- 125
-
+
+ 120120
+ Deudores en Gestión Judicial
- 1
-
-
-
-
- Cuentas por Cobrar / Préstamos otorgados
- 131
-
-
-
-
-
-
- Cuentas por Cobrar / Anticipos a Proveedores
- 132
-
-
-
-
-
-
- Cuentas por Cobrar / Anticipo de Impuestos
- 133
-
-
-
-
-
-
- Cuentas por Cobrar / Anticipo al Personal
- 134
-
-
-
-
-
- Cuentas por Cobrar / Alquileres Pagados por Adelantado
- 135
-
-
-
-
-
-
- Cuentas por Cobrar / Intereses Pagados por Adelantado
- 136
-
-
-
-
-
-
- Cuentas por Cobrar / Accionistas
- 137
-
-
-
-
-
-
- Cuentas por Cobrar / (-) Previsión para Descuentos
- 138
-
-
-
-
-
-
- Cuentas por Cobrar / (-) Intereses (+) a Devengar
- 139
-
-
-
-
-
-
- Inversiones / Acciones Transitorias
- 141
-
-
-
-
-
-
- Inversiones / Acciones Permanentes
- 142
-
-
-
-
-
-
- Inversiones / Títulos Públicos
- 143
-
-
-
-
-
-
- Inversiones / (-) Previsión para Devalorización de Acciones
- 144
-
-
-
-
-
-
- Existencias - Mercaderías / Categoria de productos 01
- 151.01
-
-
-
-
-
-
- Existencias - Mercaderías en Tránsito
- 152
-
-
-
-
-
-
- Materias primas
- 153
-
-
-
-
-
-
- Productos en Curso de Elaboración
- 154
-
-
-
-
-
-
- Productos Elaborados
- 155
-
-
-
-
-
-
- Materiales Varios
- 156
-
-
-
-
-
-
- (-) Previsión para Desvalorización de Existencias
- 157
-
-
-
-
-
-
- Activo Fijo / Inmuebles
- 161
-
-
-
-
-
-
- Activo Fijo / Maquinaria
- 162
-
-
-
-
-
-
- Activo Fijo / Equipos
- 163
-
-
-
-
-
-
- Activo Fijo / Material Rodante Motorizado
- 164
-
-
-
-
-
-
- Activo Fijo / (-) Depreciación Acumulada
- 165
-
-
-
-
-
-
- Activo Intangible / Derecho de Llaves
- 171
-
-
-
-
-
-
- Activo Intangible / Concesiones y Franquicias
- 172
-
-
-
-
-
-
- Activo Intangible / Marcas y Patentes de Invención
- 173
-
-
-
-
-
-
- Activo Intangible / (-) Amortización Acumulada
- 174
-
-
-
-
-
-
- Cuentas por Pagar / Proveedores
- 211
+
+
+
+
+ 121110
+ Equipos y Mobiliario de Oficina
+
+
+
+
+
+
+
+ 121120
+ Equipos Computacionales
+
+
+
+
+
+
+
+ 121130
+ Vehículos
+
+
+
+
+
+
+
+ 121140
+ Maquinaria
+
+
+
+
+
+
+
+ 121210
+ Bienes Raíces
+
+
+
+
+
+
+
+ 121310
+ Depreciación Acum Equipos y Mob de Oficina
+
+
+
+
+
+
+ 121320
+ Depreciación Acum Equipos Computacionales
+
+
+
+
+
+
+ 121330
+ Depreciación Acum Otros Activos
+
+
+
+
+
+
+
+ 130110
+ Activo Intangible - Derecho de Llaves
+
+
+
+
+
+
+ 130112
+ Activo Intangible - Concesiones y Franquicias
+
+
+
+
+
+
+ 130114
+ Activo Intangible - Marcas y Patentes de Invención
+
+
+
+
+
+
+ 130116
+ Activo Intangible - (-) Amortización Acumulada
+
+
+
+
+
+
+ 130120
+ Derechos Otras Empresas
+
+
+
+
+
+
+ 130130
+ Cuentas por Cobrar a Personas y Empresas Relacionadas Largo Plazo
+
+
+
+
+
+
+ 130140
+ Documentos y Cuentas por Cobrar a Largo Plazo
+
+
+
+
+
+
+ 130150
+ Garantías de Obligaciones a Largo Plazo y de Obligaciones de Terceros
+
+
+
+
+
+
+ 130160
+ Títulos Patrimoniales Bolsas de Productos
+
+
+
+
+
+
+ 190110
+ Boletas de Garantía
+
+
+
+
+
+
+ 190210
+ Letras Descontadas
+
+
+
+
+
+
+ 190310
+ Documentos en Garantía
+
+
+
+
+
+
+ 190410
+ Acciones Suscritas
+
+
+
+
+
+
+ 210110
+ Tarjeta de Crédito Corporativa
+
+
+
+
+
+
+ 210120
+ Linea de Crédito Bancaria
+
+
+
+
+
+
+ 210140
+ Crédito Comercial C/Plazo
+
+
+
+
+
+
+ 210150
+ Obligaciones Leasing Corto Plazo
+
+
+
+
+
+
+ 210160
+ Crédito Hipotecario C/Plazo
+
+
+
+
+
+
+ 210170
+ Crédito Comercial LP Venc. C/Plazo
+
+
+
+
+
+
+ 210180
+ Dividendos por Pagar
+
+
+
+
+
+
+ 210190
+ Intereses a Devengar por Compras al Crédito
- 1
-
-
-
-
- Cuentas por Pagar / Anticipos de Clientes
- 212
-
- 1
-
- Cuentas por Pagar / (-) Intereses a Devengar por Compras al Crédito
- 213
+
+ 210195
+ Intereses a pagar
+
+
+
+
+
+
+ 210210
+ Proveedores
+
+
+
+
+
+
+ 210220
+ Anticipo de Clientes
- 1
+
-
- Pasivo Circulante / Adelantos en Cuenta Corriente
- 221
-
+
+ 210230
+ Facturas por Recibir
+
-
- Pasivo Circulante / Prestamos
- 222
-
+
+ 210310
+ Cheques Girados y No Cobrados
+
-
- Pasivo Circulante / Obligaciones a Pagar
- 223
-
+
+ 210320
+ Documentos en Garantía
+
-
- Pasivo Circulante / Intereses a Pagar
- 224
-
+
+ 210330
+ Boleta en Garantia
+
-
- Pasivo Circulante / Debentures Emitidos
- 225
-
+
+ 210410
+ AFP x Pagar
+
-
- Impuestos por Pagar / IVA a Pagar
- 231
-
+
+ 210420
+ C.C.A.F. x Pagar
+
-
- Impuestos por Pagar / Impuesto a la Renta a Pagar
- 232
-
+
+ 210430
+ INP x Pagar
+
-
- Remuneraciones por Pagar / Sueldos a Pagar
- 241
-
+
+ 210440
+ ISAPRES x Pagar
+
-
- Remuneraciones por Pagar / Cargas Sociales a Pagar
- 242
-
+
+ 210450
+ Mutual Seg. x Pagar
+
-
- Remuneraciones por Pagar / Provisión para Sueldo Anual Complementario
- 243
-
+
+ 210510
+ Sueldos por Pagar
+
-
- Remuneraciones por Pagar / Retenciones a Depositar
- 244
-
+
+ 210520
+ Honorarios por Pagar
+
-
- Otras Cuentas por Pagar / Acreedores Varios
- 251
-
+
+ 210550
+ Rendiciones por Pagar
+
-
- Otras Cuentas por Pagar / Dividendos a Pagar
- 252
-
+
+ 210560
+ Provisión de Vacaciones
+
-
- Otras Cuentas por Pagar / Cobros por Adelantado
- 253
-
+
+ 210565
+ Provisión por Finiquitos
+
-
- Otras Cuentas por Pagar / Honorarios Directores y Síndicos a Pagar
- 254
+
+ 210610
+ Provisión de Impuesto PPM
+
+
+
+
+
+ 210620
+ Otras Provisiones
+
-
- Provisiones / Previsión Indemnización por Despidos
- 261
-
+
+ 210710
+ IVA Débito Fiscal
+
-
- Provisiones / Previsión para juicios Pendientes
- 262
-
+
+ 210720
+ PPM por Pagar
+
-
- Provisiones / Previsión para Garantías por Service
- 263
-
+
+ 210730
+ Impuesto Único Trabajadores
+
+
+
+
+
+
+ 210740
+ Impuesto Retención Segunda Categoría
+
+
-
- Capital / Capital Propio
- 311
+
+ 210750
+ Impuesto Renta 1a Categoría por Pagar
+
+
+
+
+
+ 210760
+ Impuesto Mensuales por Pagar
+
+
+
+
+
+
+ 220120
+ Obligaciones Leasing L/Plazo
+
+
+
+
+
+
+ 220130
+ Crédito Comercial L/Plazo
+
+
+
+
+
+
+ 220210
+ Provisión Indemnización por Años de Servicio
+
+
+
+
+
+
+ 220310
+ Cta Corriente Empresa Relacionada
+
+
+
+
+
+
+ 220320
+ Impuesto Diferido Largo Plazo
+
+
+
+
+
+
+ 220330
+ Otros Pasivos
+
+
+
+
+
+
+ 230110
+ Capital Social
-
-
-
-
- Capital / Acciones en Circulación
- 312
-
-
- Capital / Dividendos a Distribuir en Acciones
- 313
+
+ 230120
+ Acciones en Circulación
+
-
-
- Capital / (-) Descuento de Emisión de Acciones
- 314
+
+ 230130
+ Dividendos a Distribuir en Acciones
+
-
-
- Aportes No Capitalizados / Primas de Emsión
- 321
+
+ 230140
+ Descuento de Emisión de Acciones
+
-
-
- Aportes No Capitalizados / Aportes Irrevocables Futura Suscripción de Acciones
- 322
+
+ 230210
+ Revalorización Capital Propio
+
-
-
- Ajustes al Patrimonio / Revaluo Técnico de Activo Fijo
- 331
+
+ 230220
+ Otras Revalorizaciones
+
-
-
+
+ 230230
+ Revalorización Activo Fijo
+
+
+
+
+
+
+ 230240
+ Fluctuación de Valores
+
+
+
+
+
+
+ 230250
Reserva Legal
- 341
-
+
-
+
+ 230260
Reserva Estatutaria
- 342
-
+
-
+
+ 230270
Reserva Facultativa
- 343
-
+
-
+
+ 230280
Reserva para Renovación de Activo Fijo
- 344
-
+
-
+
+ 230290
Resultados Acumulados
- 351
-
+
-
- Resultados Acumulados del Ejercicio Anterior
- 352
-
-
-
-
-
-
+
+ 230300
Utilidades y Pérdidas del Ejercicio
- 353
-
+
-
+
+ 230310
+ Resultados Acumulados del Ejercicio Anterior
+
+
+
+
+
+
+ 230510
Resultado del Ejercicio
- 354
-
-
-
-
-
- Ventas - Categoria de productos 01
- 411.01
-
-
- Intereses gananados, obtenidos, percibidos
- 412
-
-
+
+ 290110
+ Cuenta Puente
+
+
-
- Alquileres gananados, obtenidos, percibidos
- 413
+
+ 290210
+ Responsable Boletas Garantía
+
-
-
- Comisiones gananados, obtenidos, percibidos
- 414
+
+ 290220
+ Responsable Documentos Garantía
+
-
-
- Descuentos gananados, obtenidos, percibidos
- 415
+
+ 290230
+ Responsable Letras Descontadas
+
-
-
- Interese sobre Inversiones
- 416
-
+
+ 310110
+ Ingresos por Consultoría
+
-
- Honorarios gananados, obtenidos, percibidos
- 417
-
+
+ 310115
+ Ventas de Productos
+
+
+
+
+
+
+ 310120
+ Ventas de Servicios
+
+
+
+
+
+
+
+ 310125
+ Ventas de Exportación
+
+
-
+
+ 310130
+ Comisiones Percibidas por Ventas
+
+
+
+
+
+
+ 320210
+ Utilidad Venta Activo Fijo
+
+
+
+
+
+
+ 320220
+ Intereses Percibidos Sobre Préstamos Otorgados
+
+
+
+
+
+
+ 320225
+ Arriendos ganados, obtenidos, percibidos
+
+
+
+
+
+
+ 320230
+ Descuentos ganados, obtenidos, percibidos
+
+
+
+
+
+
+ 320235
+ Intereses sobre Inversiones
+
+
+
+
+
+
+ 320240
Ganancia Venta de Acciones
- 418
-
+
-
+
+ 320245
Recupero de Rezagos
- 421
-
+
-
+
+ 320250
Recupero de Deudores Incobrables
- 422
-
+
-
- Ganancia Venta de Activo Fijo
- 423
-
-
-
-
-
-
+
+ 320255
Donaciones obtenidas, ganandas, percibidas
- 424
-
+
-
+
+ 320260
Ganancia Venta Inversiones Permanentes
- 425
-
+
-
- Diferencial cambiario
- 426
-
+
+ 320265
+ Diferencia tipo de cambio
+
-
- Costo de Mercaderías Vendidas - Categoria de productos 01
- 511.01
+
+ 320270
+ Cŕeditos a Largo Plazo
+
+
+
+
+
+ 320275
+ Otros Ingresos
+
+
+
+
+
+
+ 320280
+ Corrección Monetaria Activos
+
+
+
+
+
+
+ 320285
+ Corrección Monetaria Bienes Leasing
+
+
+
+
+
+
+ 410110
+ Remuneraciones Operación
+
-
- Gastos en Depreciación de Activo Fijo
- 512
-
+
+ 410115
+ Aporte Patronal Operación
+
-
- Gastos en Amortización
- 513
-
+
+ 410120
+ Viáticos
+
-
- Gastos en Sueldos y Jornales
- 514
-
+
+ 410125
+ Capacitación
+
-
- Gastos en Cargas Sociales
- 515
-
+
+ 410130
+ Honorarios Pagados
-
-
-
-
- Gastos en Impuestos
- 516
-
-
+
+ 410135
+ Asesorías
+
+
+
+
+
+
+ 410140
+ Arriendos Oficina
+
+
+
+
+
+
+ 410145
+ Arriendos Bodega
+
+
+
+
+
+
+ 410150
+ Comunicaciones
+
+
+
+
+
+
+ 410155
+ Servicios Legales
+
+
+
+
+
+
+ 410160
+ Manutención y Reparación de Activos
+
+
+
+
+
+
+ 410165
+ Papelería-Aseo-Gastos Diversos
+
+
+
+
+
+
+ 410170
+ Remuneraciones Administración
+
+
+
+
+
+
+ 410175
+ Aporte Patronal Administración
+
+
+
+
+
+
+ 410180
+ Electricidad
+
+
+
+
+
+
+ 410185
+ Gastos Comunes
+
+
+
+
+
+
+ 410190
Gastos Bancarios
- 517
-
+
-
- Gastos en Servicios Públicos
- 518
+
+ 410195
+ Diferencia Tipo de Cambio
+
+
+
+
+
+ 410200
+ Corrección Monetaria
+
+
+
+
+
+
+ 410205
+ Multas Fiscales
+
+
+
+
+
+
+ 410210
+ Impuesto a la Renta 1ra Categoría
+
-
- Gastos de Publicidad y Propaganda
- 519
-
+
+ 410215
+ Pérdida por Venta Activo
+
-
- Gastos en Siniestros
- 521
-
+
+ 410220
+ Ajuste Ejercicio Anterior
+
-
- Donaciones Cedidas, Otorgadas
- 522
-
+
+ 410225
+ Donación
+
-
- Pérdida Venta Activo Fijo
- 523
-
+
+ 410230
+ Compras Productos 1ra Categoría
+
+
+
+
+
+ 410231
+ Compras Netas (IVA Uso Común)
+
+
+
+
+
+
+ 410232
+ Compras Netas (IVA No Recuperable)
+
+
+
+
+
+
+ 410233
+ Compras de Supermercado
+
+
+
+
+
+
+
+ 410235
+ Costo de Mercaderías Vendidas - Prod. 1ra Categoría
+
+
-
- Diferencial cambiario
- 524
+
+ 410240
+ Importaciones
+
-
-
-
-
-
- Compras - Categoria de productos 01
- 61.01
-
-
-
- Costos de Producción
- 62
+
+ 410245
+ CIF
+
-
-
- Gastos de Administración
- 63
+
+ 410250
+ Compras de Materia Prima
+
-
-
- Gastos de Comercialización
- 64
-
+
+ 410255
+ Mano de Obra Directa
+
-
+
+ 420110
Mercaderias Recibidas en Consignación
- 711
-
+
-
- Depósito de Valores Recibos en Garantía
- 712
-
-
-
-
-
-
- Garantias Otorgadas
- 713
-
-
-
-
-
-
- Documentos Descontados
- 714
-
-
-
-
-
-
- Documentos Endosados
- 715
-
-
-
-
-
-
+
+ 440210
Comitente por Mercaderias Recibidas en Consignación
- 721
-
-
+
+ 420120
+ Gastos en Depreciación de Activo Fijo
+
+
+
+
+
+
+ 420140
+ Gastos en Amortización
+
+
+
+
+
+
+ 420150
+ Gastos en Siniestros
+
+
+
+
+
+
+ 420160
+ Depósito de Valores Recibos en Garantía
+
+
+
+
+
+
+ 420170
+ Garantias Otorgadas
+
+
+
+
+
+
+ 420180
+ Documentos Descontados
+
+
+
+
+
+
+ 420190
+ Documentos Endosados
+
+
+
+
+
+
+ 420200
Acreedor por Garantías Otorgadas
- 722
-
+
-
+
+ 420210
Acreedor por Documentos Descontados
- 723
+
-
-
- Activo Circulante - Moneda Extranjera
- 112
-
+
+ 420220
+ Gastos Otros Impuestos
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/addons/l10n_cl/data/l10n_latam.document.type.csv b/addons/l10n_cl/data/l10n_latam.document.type.csv
new file mode 100644
index 00000000000..85d764da956
--- /dev/null
+++ b/addons/l10n_cl/data/l10n_latam.document.type.csv
@@ -0,0 +1,52 @@
+id,sequence,code,name,report_name,internal_type,doc_code_prefix,country_id/id,active
+dc_I_f_dtn,10,29,Factura de Inicio,FAI,invoice,FAI,base.cl,False
+dc_a_f_dtn,20,30,Factura,FACTURA,invoice,FAC,base.cl,False
+dc_y_f_dtn,30,32,Factura de Ventas y Servicios no Afectos o Exentos de IVA,F-EXENTA,invoice,FNA,base.cl,False
+dc_a_f_dte,40,33,Factura Electrónica,FACTURA,invoice,FAC,base.cl,True
+dc_y_f_dte,50,34,Factura no Afecta o Exenta Electrónica,F-EXENTA,invoice,FNA,base.cl,True
+dc_l_f_dtn,60,40,Liquidación Factura,L-FACTURAM,invoice,FAL,base.cl,False
+dc_l_f_dte,70,43,Liquidación Factura Electrónica,L-FACTURAE,invoice,FAL,base.cl,False
+dc_fc_f_dtn,80,45,Factura de Compra,FACTURA,invoice_in,FAC,base.cl,False
+dc_fc_f_dte,90,46,Factura de Compra Electrónica,FACTURA,invoice_in,FAC,base.cl,False
+dc_nd_f_dtn,100,55,Nota de Débito,NOTA DE DEBITO,debit_note,N/D,base.cl,False
+dc_nd_f_dte,110,56,Nota de Débito Electrónica,NOTA DE DEBITO,debit_note,N/D,base.cl,True
+dc_nc_f_dtn,120,60,Nota de Crédito,NOTA DE CREDITO,credit_note,N/C,base.cl,False
+dc_nc_f_dte,130,61,Nota de Crédito Electrónica,NOTA DE CREDITO,credit_note,N/C,base.cl,True
+dc_s_f_dtn,140,108,SRF Solicitud de Registro de Factura,SOL REGISTRO,,REG,base.cl,False
+dc_ftf_f_dtn,150,901,Factura de ventas a empresas del territorio preferencial ( Res. Ex. N° 1057,FACTURA,invoice,FAC,base.cl,False
+dc_din_f_dtn,160,914,Declaración de Ingreso (DIN),DEC ING,invoice_in,DIN,base.cl,False
+dc_dizf_f_dtn,170,911,Declaración de Ingreso a Zona Franca Primaria,DEC ING,invoice_in,DIN,base.cl,False
+dc_ftt_f_dtn,180,904,Factura de Traspaso,FACT TR,invoice,FTR,base.cl,False
+dc_frr_f_dtn,190,905,Factura de Reexpedición,FACT RX,invoice,FRX,base.cl,False
+dc_bzf_f_dtn,200,906,Boletas Venta Módulos ZF (todas),BOLETA ZF,invoice,BZF,base.cl,False
+dc_fzf_f_dtn,210,907,Facturas Venta Módulo ZF (todas),FACTURA ZF,invoice,FZF,base.cl,False
+dc_tca_f_dtn,220,500,Ajuste aumento Tipo de Cambio (código 500),TC-A,,TCA,base.cl,False
+dc_tcd_f_dtn,230,501,Ajuste disminución Tipo de Cambio (código 501),TC-D,,TCD,base.cl,False
+dc_b_f_dtn,240,35,Boleta de Venta,BOL,invoice,BOL,base.cl,False
+dc_b_e_dtn,250,38,Boleta exenta,BEX,invoice,BEX,base.cl,False
+dc_b_f_dte,260,39,Boleta Electrónica,BEL,invoice,BEL,base.cl,True
+dc_b_e_dte,270,41,Boleta Exenta Electrónica,BXE,invoice,BXE,base.cl,False
+dc_m_f_dtn,280,70,Boleta de Honorarios,BHO,invoice,BHO,base.cl,False
+dc_m_d_dtn,290,71,Boleta de Honorarios Electrónica,BHE,invoice,BHE,base.cl,True
+dc_oc,300,801,Orden de Compra,OC,,OC,base.cl,False
+dc_hes,310,HES,Hoja de Entrada de Servicio (HES),HES,,HES,base.cl,False
+dc_hem,320,HEM,Hoja de Entrada de Materiales (HEM),HEM,,HEM,base.cl,False
+dc_migo,330,MIG,Movimiento de Mercancías (MIGO),MIGO,,MIGO,base.cl,False
+dc_li,340,103,Liquidación,LIQ,,LIQ,base.cl,False
+dc_fe_dte,370,110,Factura de Exportación Electrónica,FCXE,invoice,FCXE,base.cl,False
+dc_ndex_dte,380,111,Nota de Débito de Exportación Electrónica,NDXE,debit_note,NDXE,base.cl,False
+dc_ncex_dte,390,112,Nota de Crédito de Exportación Electrónica,NCXE,credit_note,NCXE,base.cl,False
+dc_ndp,400,802,Nota de pedido,NP,,NP,base.cl,False
+dc_cont,410,803,Contrato,CONT,,CONT,base.cl,False
+dc_resol,420,804,Resolución,RES,,RES,base.cl,False
+dc_prchc,430,805,Proceso ChileCompra,PCHC,,PCHC,base.cl,False
+dc_fichc,440,806,Ficha ChileCompra,FCHC,,FCHC,base.cl,False
+dc_dus,450,807,DUS,DUS,,DUS,base.cl,False
+dc_bl_cemb,460,808,B/L (Conocimiento de embarque),B/L,,B/L,base.cl,False
+dc_awb,470,809,AWB Airway Bill,AWB,,AWB,base.cl,False
+dc_mic_dta,480,810,MIC/DTA,MDT,,MDT,base.cl,False
+dc_cpor,490,811,Carta de Porte,CPR,,CPR,base.cl,False
+dc_res_sna,500,812,Resolución del SNA donde califica Servicios de Exportación,RSN,,RSN,base.cl,False
+dc_pasap,510,813,Pasaporte,PSP,,PSP,base.cl,False
+dc_cd_bol,520,814,Certificado de Depósito Bolsa Prod. Chile.,CRTD,,CRTD,base.cl,False
+dc_vp_pren,530,815,Vale de Prenda Bolsa Prod. Chile,VLPR,,VLPR,base.cl,False
diff --git a/addons/l10n_cl/data/l10n_latam_identification_type_data.xml b/addons/l10n_cl/data/l10n_latam_identification_type_data.xml
new file mode 100644
index 00000000000..8bc1bc71663
--- /dev/null
+++ b/addons/l10n_cl/data/l10n_latam_identification_type_data.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ RUT
+ RUT
+ 11
+
+
+
+
+ RUN
+ Cédula
+ 12
+
+
+
+ DNI
+ DNI Extranjero
+ 13
+
+
+
+
diff --git a/addons/l10n_cl/data/menuitem_data.xml b/addons/l10n_cl/data/menuitem_data.xml
new file mode 100644
index 00000000000..d5b35a26022
--- /dev/null
+++ b/addons/l10n_cl/data/menuitem_data.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/data/product_data.xml b/addons/l10n_cl/data/product_data.xml
new file mode 100644
index 00000000000..4fd5e70d066
--- /dev/null
+++ b/addons/l10n_cl/data/product_data.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ Ad-Valorem
+ service
+ AD_VALOREM
+ Cargo para calculo de Ad-Valorem en DIN
+
+
+
+
+
diff --git a/addons/l10n_cl/data/res.bank.csv b/addons/l10n_cl/data/res.bank.csv
new file mode 100644
index 00000000000..48c1a67cba6
--- /dev/null
+++ b/addons/l10n_cl/data/res.bank.csv
@@ -0,0 +1,33 @@
+id,name,l10n_cl_sbif_code,country
+bank_001_0,Banco de Chile,001,Chile
+bank_001_1,Banco Edwards,001,Chile
+bank_001_2,Citi,001,Chile
+bank_001_3,Atlas,001,Chile
+bank_001_4,CrediChile,001,Chile
+bank_009_0,Banco Internacional,009,Chile
+bank_012_0,Banco Estado,012,Chile
+bank_014_0,Scotiabank Chile,014,Chile
+bank_016_0,Banco De Credito e Inversiones (BCI),016,Chile
+bank_016_1,Tbanc,016,Chile
+bank_016_2,BCI Nova,016,Chile
+bank_027_0,Corpbanca,027,Chile
+bank_027_1,Banco Condell,027,Chile
+bank_028_0,Banco Bice,028,Chile
+bank_031_0,Hsbc Bank,031,Chile
+bank_037_0,Banco Santander-Chile,037,Chile
+bank_037_1,Banefe,037,Chile
+bank_039_0,Banco Itaú Chile,039,Chile
+bank_049_0,Banco Security,049,Chile
+bank_051_0,Banco Falabella,051,Chile
+bank_052_0,Deutsche Bank,052,Chile
+bank_053_0,Banco Ripley,053,Chile
+bank_054_0,Rabobank Chile (Ex Hns Banco),054,Chile
+bank_055_0,Banco Consorcio (Ex Banco Monex),055,Chile
+bank_056_0,Banco Penta,056,Chile
+bank_057_0,Banco Paris,057,Chile
+bank_504_0,Banco Bilbao Vizcaya Argentaria Chile (BBVA),504,Chile
+bank_504_1,BBVA Express,504,Chile
+bank_059_0,Banco Btg Pactual Chile,059,Chile
+bank_017_0,Banco Do Brasil S.A.,017,Chile
+bank_041_0,Jp Morgan Chase Bank N. A.,041,Chile
+bank_043_0,Banco De La Nacion Argentina,043,Chile
diff --git a/addons/l10n_cl/data/res.country.csv b/addons/l10n_cl/data/res.country.csv
new file mode 100644
index 00000000000..c88c6d366db
--- /dev/null
+++ b/addons/l10n_cl/data/res.country.csv
@@ -0,0 +1,160 @@
+id,l10n_cl_customs_code
+base.ad,525
+base.af,308
+base.ag,240
+base.al,518
+base.am,540
+base.ao,140
+base.ar,224
+base.at,509
+base.au,406
+base.aw,243
+base.az,541
+base.bb,204
+base.bd,321
+base.bf,161
+base.bg,527
+base.bi,141
+base.bj,150
+base.bm,244
+base.bo,221
+base.br,220
+base.bs,207
+base.bw,113
+base.by,542
+base.ca,226
+base.cg,144
+base.ch,508
+base.ci,107
+base.ck,427
+base.cl,997
+base.cn,336
+base.co,202
+base.cr,211
+base.cu,209
+base.cv,129
+base.cy,305
+base.de,563
+base.dj,155
+base.dk,507
+base.dm,231
+base.dz,127
+base.ec,218
+base.ee,549
+base.eg,124
+base.er,163
+base.es,517
+base.fi,512
+base.fj,401
+base.fm,417
+base.fr,505
+base.ga,145
+base.gd,232
+base.ge,550
+base.gg,566
+base.gh,108
+base.gi,565
+base.gl,253
+base.gm,102
+base.gn,104
+base.gq,147
+base.gr,520
+base.gt,215
+base.gu,425
+base.gy,217
+base.hn,214
+base.hr,547
+base.ht,208
+base.id,328
+base.ie,506
+base.il,306
+base.in,317
+base.iq,307
+base.ir,309
+base.is,516
+base.it,504
+base.je,568
+base.jm,205
+base.jo,301
+base.ke,137
+base.kh,315
+base.ki,416
+base.kp,334
+base.kr,333
+base.kw,303
+base.la,316
+base.li,534
+base.lk,314
+base.lr,106
+base.ls,114
+base.lt,554
+base.lv,553
+base.ly,125
+base.ma,128
+base.mc,535
+base.md,556
+base.mg,120
+base.mh,164
+base.ml,133
+base.mn,337
+base.mo,345
+base.mp,424
+base.mq,250
+base.mr,134
+base.mt,523
+base.mu,119
+base.mw,115
+base.mx,216
+base.my,329
+base.mz,121
+base.na,159
+base.nc,423
+base.ne,131
+base.ng,111
+base.ni,212
+base.nl,515
+base.no,513
+base.np,320
+base.nr,402
+base.nu,421
+base.om,304
+base.pa,210
+base.pe,219
+base.pf,422
+base.ph,335
+base.pk,324
+base.pl,528
+base.pr,251
+base.pt,501
+base.py,222
+base.qa,312
+base.rw,142
+base.sc,156
+base.sd,123
+base.se,511
+base.sg,332
+base.si,548
+base.sl,105
+base.sm,536
+base.sn,101
+base.so,138
+base.sr,235
+base.sv,213
+base.sy,310
+base.td,130
+base.tg,109
+base.tm,558
+base.tt,203
+base.tv,419
+base.tz,135
+base.ua,559
+base.ug,136
+base.uk,510
+base.uy,223
+base.uz,560
+base.vc,234
+base.ve,201
+base.vn,325
+base.vu,415
+base.zm,117
+base.zw,116
\ No newline at end of file
diff --git a/addons/l10n_cl/data/res.currency.csv b/addons/l10n_cl/data/res.currency.csv
new file mode 100644
index 00000000000..0fbfc7103be
--- /dev/null
+++ b/addons/l10n_cl/data/res.currency.csv
@@ -0,0 +1,32 @@
+id,l10n_cl_currency_code,name,l10n_cl_short_name,rounding,position,symbol,currency_unit_label,active
+base.AED,139,AED,DIRHAM,1,,د.إ,,
+base.ARS,1,ARS,PESO,1,,$,,
+base.AUD,36,AUD,DOLAR AUST,1,,$,,
+base.BOB,4,BOB,BOLIVIANO,1,,Bs.,,
+base.BRL,5,BRL,CRUZEIRO REAL,1,,R$,,
+base.CAD,6,CAD,DOLAR CAN,1,,$,,
+base.CHF,82,CHF,FRANCO SZ,1,,CHF,,
+base.CLP,200,CLP,PESO CL,1.0,before,CLP,Peso,True
+base.CNY,48,CNY,RENMINBI,1,,¥,,
+base.COP,129,COP,PESO COL,1,,$,,
+base.ECS,130,ECS,SUCRE,1,,S/.,,
+base.EUR,142,EUR,EURO,0.01,before,€,Euros,
+base.GBR,102,GBR,LIBRA EST,1,,£,,
+base.HKD,127,HKD,DOLAR HK,1,,$,,
+base.INR,137,INR,RUPIA,1,,₹,,
+base.JPY,72,JPY,YEN,1,,¥,,
+base.MXN,132,MXN,PESO MEX,1,,$,,
+base.NOK,96,NOK,CORONA NOR,1,,kr,,
+base.NZD,97,NZD,DOLAR NZ,1,,$,,
+base.PEN,24,PEN,NUEVO SOL,1,,S/,,
+base.PYG,23,PYG,GUARANI,1,,₲,,
+base.SEK,113,SEK,CORONA SC,1,,kr,,
+base.SGD,136,SGD,DOLAR SIN,1,,$,,
+base.TWD,138,TWD,DOLAR TAI,1,,NT$,,
+base.UF,,UF,Unidad de Fomento,0.01,after,UF,Unidad de Fomento,
+base.USD,13,USD,DOLAR USA,0.01,before,$,Dollars,
+base.UTM,,UTM,Unidad Tributaria Mensual,0.01,after,UTM,Unidad Tributaria Mensual,
+base.UYU,26,UYU,PESO URUG,1,,$,,
+base.VEF,134,VEF,BOLIVAR,1,,Bs.F,,
+base.ZAR,128,ZAR,RAND,1,,R,,
+l10n_cl.OTR,900,OTR,OTR,1,,OTR,,
\ No newline at end of file
diff --git a/addons/l10n_cl/data/res_partner.xml b/addons/l10n_cl/data/res_partner.xml
new file mode 100644
index 00000000000..91c15a2287a
--- /dev/null
+++ b/addons/l10n_cl/data/res_partner.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+ Consumidor Final Anónimo
+ 3
+
+ 66666666-6
+
+
+
+ Tesorería General de la República
+ company
+ 1
+
+ 60805000-0
+
+
+
+
+ Servicio de Impuestos Internos
+ company
+ 1
+
+ 60803000-K
+
+
+
+
+
+
diff --git a/addons/l10n_cl/data/uom_data.xml b/addons/l10n_cl/data/uom_data.xml
new file mode 100644
index 00000000000..f0b9fbd4326
--- /dev/null
+++ b/addons/l10n_cl/data/uom_data.xml
@@ -0,0 +1,165 @@
+
+
+
+
+ Energía
+
+
+ Otros
+
+
+
+ 10
+ U
+
+
+
+ 11
+ DOC
+
+
+
+ 14
+ MT
+
+
+
+
+
+ 6
+ KN
+
+
+
+ 9
+ LT
+
+
+
+ 0
+ S.U.M
+
+ smaller
+
+
+
+ 1
+ TMB
+
+ bigger
+
+
+
+ 12
+ U(JGO)
+
+ bigger
+
+
+
+ 15
+ MT2
+
+ bigger
+
+
+
+ 16
+ MCUB
+
+ bigger
+
+
+
+ 17
+ PAR
+
+ bigger
+
+
+
+ 18
+ KNFC
+
+ bigger
+
+
+
+ 19
+ CARTON
+
+ bigger
+
+
+
+ 2
+ QMB
+
+ bigger
+
+
+
+ 20
+ KWH
+
+
+
+
+ 23
+ BAR
+
+ bigger
+
+
+
+ 24
+ M2/1MM
+
+ smaller
+
+
+
+ 3
+ MKWH
+
+ bigger
+
+
+
+ 4
+ TMN
+
+ bigger
+
+
+
+ 5
+ QNT
+
+ bigger
+
+
+
+ 7
+ GN
+ smaller
+
+
+
+ 8
+ HL
+
+ bigger
+
+
+
+ 99
+ S.U.M
+
+ bigger
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/demo/bmya_icon.png b/addons/l10n_cl/demo/bmya_icon.png
new file mode 100755
index 00000000000..02e87bcc733
Binary files /dev/null and b/addons/l10n_cl/demo/bmya_icon.png differ
diff --git a/addons/l10n_cl/demo/foto_dab.png b/addons/l10n_cl/demo/foto_dab.png
new file mode 100644
index 00000000000..42e152a99f4
Binary files /dev/null and b/addons/l10n_cl/demo/foto_dab.png differ
diff --git a/addons/l10n_cl/demo/partner_demo.xml b/addons/l10n_cl/demo/partner_demo.xml
new file mode 100644
index 00000000000..2e81f4aa87e
--- /dev/null
+++ b/addons/l10n_cl/demo/partner_demo.xml
@@ -0,0 +1,42 @@
+
+
+
+
+ Blanco Martin & Asociados EIRL
+ info@bmya.cl
+ 1
+ Las Condes
+
+ Apoquindo 6410
+ Oficina 212, Santiago (RM)
+ +56 2 28400990
+ http://www.bmya.cl
+
+ 76201224-3
+
+
+
+
+ Daniel Blanco
+ contact
+
+
+
+
+
+
+ Teksa SpA
+ teksa@teksa.cl
+ 1
+ Pudahuel
+
+ Puerto Madero 9710
+ Of A15, Santiago (RM)
+ +562 2840 5918
+ http://www.teksa.cl
+
+ 76882486-K
+
+
+
+
diff --git a/addons/l10n_cl/demo/teksa-logo-300.png b/addons/l10n_cl/demo/teksa-logo-300.png
new file mode 100644
index 00000000000..d3e2e12acb5
Binary files /dev/null and b/addons/l10n_cl/demo/teksa-logo-300.png differ
diff --git a/addons/l10n_cl/i18n/es.po b/addons/l10n_cl/i18n/es.po
new file mode 100644
index 00000000000..620d18e66dd
--- /dev/null
+++ b/addons/l10n_cl/i18n/es.po
@@ -0,0 +1,519 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * l10n_cl
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 13.0alpha1+e\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-08-11 18:27+0000\n"
+"PO-Revision-Date: 2019-08-11 18:27+0000\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_res_partner__l10n_cl_sii_taxpayer_type
+#: model:ir.model.fields,help:l10n_cl.field_res_users__l10n_cl_sii_taxpayer_type
+msgid ""
+"1 - VAT Affected (1st Category) (Most of the cases)\n"
+"2 - Fees Receipt Issuer (Applies to suppliers who issue fees receipt)\n"
+"3 - End consumer (only receipts)\n"
+"4 - Foreigner"
+msgstr ""
+"1 - IVA Afecto (la mayoría de los casos)\n"
+"2 - Emisor Boletas (aplica solo para proveedores emisores de boleta)\n"
+"3 - Consumidor Final (se le emitirán siempre boletas)\n"
+"4 - Extranjero"
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Accounting Date"
+msgstr "Fecha contable"
+
+#. module: l10n_cl
+#: model:product.product,name:l10n_cl.product_product_ad_valorem
+#: model:product.template,name:l10n_cl.product_product_ad_valorem_product_template
+msgid "Ad-Valorem"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Amount Due"
+msgstr "Monto adeudado"
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Amount Untaxed"
+msgstr "Mon sin impuestos"
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_account_move__l10n_latam_internal_type
+#: model:ir.model.fields,help:l10n_cl.field_l10n_latam_document_type__internal_type
+msgid ""
+"Analog to odoo account.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_cl
+#: model:uom.uom,name:l10n_cl.product_uom_bar
+msgid "BAR"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_bank
+msgid "Bank"
+msgstr "Banco"
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_carton
+msgid "CARTON"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_CIe
+msgid "CIe"
+msgstr ""
+
+#. module: l10n_cl
+#: model:product.product,description:l10n_cl.product_product_ad_valorem
+#: model:product.template,description:l10n_cl.product_product_ad_valorem_product_template
+msgid "Cargo para calculo de Ad-Valorem en DIN"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.ui.menu,name:l10n_cl.account_reports_cl_statements_menu
+msgid "Chile"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_bank__l10n_cl_sbif_code
+msgid "Cod. SBIF"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_account_move__l10n_latam_document_type_id_code
+msgid "Code used by different localizations"
+msgstr "Código usado por diferentes localizaciones"
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_company
+msgid "Companies"
+msgstr "Compañías"
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_res_company__l10n_cl_rut_dv
+#: model:ir.model.fields,help:l10n_cl.field_res_partner__l10n_cl_rut_dv
+#: model:ir.model.fields,help:l10n_cl.field_res_users__l10n_cl_rut_dv
+msgid ""
+"Computed field that returns RUT or nothing if this one is not set for the "
+"partner"
+msgstr ""
+"Campo calculado que retorna el RUT o valor vacío si no está establecido en "
+"el partner"
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_res_company__l10n_cl_rut
+#: model:ir.model.fields,help:l10n_cl.field_res_partner__l10n_cl_rut
+#: model:ir.model.fields,help:l10n_cl.field_res_users__l10n_cl_rut
+msgid ""
+"Computed field that will convert the given rut number to often local used "
+"format"
+msgstr "Campo calculado que convertirá el RUT al formato usado localmente"
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_partner
+msgid "Contact"
+msgstr "Contacto"
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_country
+#: model:ir.model.fields,field_description:l10n_cl.field_res_partner__country_id
+#: model:ir.model.fields,field_description:l10n_cl.field_res_users__country_id
+msgid "Country"
+msgstr "País"
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Credit Notes"
+msgstr "Notas de crédito"
+
+#. module: l10n_cl
+#: model:account.account.type,name:l10n_cl.account_account_type_NCLASIFICADO
+msgid "Cuentas No Clasificadas"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_currency
+msgid "Currency"
+msgstr "Moneda"
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_currency__l10n_cl_currency_code
+msgid "Currency Code"
+msgstr "Código de moneda"
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_country__l10n_cl_customs_code
+msgid "Customs Code"
+msgstr "Código de aduana"
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_country__l10n_cl_customs_abbreviation
+#: model:ir.model.fields,field_description:l10n_cl.field_res_country__l10n_cl_customs_name
+msgid "Customs Name"
+msgstr "Nombre de aduana"
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_DNI
+msgid "DNI"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_move_form
+msgid "Datos adic. dirección y Ciudad"
+msgstr ""
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Debit Notes"
+msgstr "Notas de débito"
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_account_move__l10n_latam_document_type_id_code
+msgid "Doc Type"
+msgstr "Tipo documento"
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:18
+#: selection:res.partner,l10n_cl_sii_taxpayer_type:0
+#, python-format
+msgid "End Consumer"
+msgstr "Consumidor final"
+
+#. module: l10n_cl
+#: model:uom.category,name:l10n_cl.uom_categ_energy
+msgid "Energía"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:17
+#: selection:res.partner,l10n_cl_sii_taxpayer_type:0
+#, python-format
+msgid "Fees Receipt Issuer (2nd category)"
+msgstr "Emisor de boleta 2da categoría"
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Folio"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:19
+#: selection:res.partner,l10n_cl_sii_taxpayer_type:0
+#, python-format
+msgid "Foreigner"
+msgstr "Extranjero"
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_hl
+msgid "HL"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_ila
+msgid "ILA"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_iva_19
+msgid "IVA 19%"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_account_move__partner_id_vat
+msgid "Identification Number for selected type."
+msgstr "Número de identificación"
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_impuestos_especificos
+msgid "Impuestos Específicos"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_l10n_latam_document_type__internal_type
+msgid "Internal Type"
+msgstr "Tipo interno"
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:78
+#, python-format
+msgid "Invalid length."
+msgstr "Longitud inválida"
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Invoices"
+msgstr "Facturas"
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Invoices and Refunds"
+msgstr "Facturas y notas de crédito"
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_company__l10n_cl_rut
+#: model:ir.model.fields,field_description:l10n_cl.field_res_partner__l10n_cl_rut
+#: model:ir.model.fields,field_description:l10n_cl.field_res_users__l10n_cl_rut
+msgid "Invoicing RUT"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_account_journal
+msgid "Journal"
+msgstr "Diario"
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_account_move
+msgid "Journal Entries"
+msgstr "Asientos contables"
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_knfc
+msgid "KNFC"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_kwh
+msgid "KWH"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_account_move__l10n_latam_internal_type
+msgid "L10n Latam Internal Type"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_l10n_latam_document_type
+msgid "Latam Document Type"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_mm
+msgid "M2/1MM"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_mcub
+msgid "MCUB"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_mkwh
+msgid "MKWH"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_mt2
+msgid "MT2"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_account_journal_form_inherit_l10n_cl
+msgid "Next Number"
+msgstr "Próximo número"
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:109
+#, python-format
+msgid "No RUT configured for partner [%i] %s"
+msgstr "No se configuró RUT para el cliente o proveedor [%i] %"
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:80
+#, python-format
+msgid "Only numbers allowed."
+msgstr "Solo se permite números"
+
+#. module: l10n_cl
+#: model:uom.category,name:l10n_cl.uom_categ_others
+msgid "Otros"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_par
+msgid "PAR"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_PAS
+msgid "PAS"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_uom_uom
+msgid "Product Unit of Measure"
+msgstr "Unidad de medida"
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Purchase Invoices"
+msgstr "Órdenes de compra"
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_qmb
+msgid "QMB"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_qnt
+msgid "QNT"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_RUN
+msgid "RUN"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_RUT
+msgid "RUT"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_company__l10n_cl_rut_dv
+#: model:ir.model.fields,field_description:l10n_cl.field_res_partner__l10n_cl_rut_dv
+#: model:ir.model.fields,field_description:l10n_cl.field_res_users__l10n_cl_rut_dv
+msgid "RUT's DV"
+msgstr "DV del RUT"
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Receipt Invoice"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_move_form
+msgid "Región"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_retenciones
+msgid "Retenciones"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_2da_categ
+msgid "Retención de 2da Categoría"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_sum
+#: model:uom.uom,name:l10n_cl.product_uom_sum_99
+msgid "S.U.M"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_uom_uom__l10n_cl_sii_code
+msgid "SII Code"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.actions.act_window,name:l10n_cl.sale_invoices_credit_notes
+#: model:ir.ui.menu,name:l10n_cl.menu_sale_invoices_credit_notes
+msgid "(CL) Sale Invoices and Credit Notes"
+msgstr "(CL) Facturas de venta y notas de crédito"
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Sales Person"
+msgstr "Comercial"
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_account_journal_form_inherit_l10n_cl
+msgid "Sequence"
+msgstr "Secuencia"
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_account_journal__l10n_cl_sequence_ids
+msgid "Sequences"
+msgstr "Secuencias"
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_currency__l10n_cl_short_name
+msgid "Short Name"
+msgstr "Nombre corto"
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Source Document"
+msgstr "Documento origen"
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_tmb
+msgid "TMB"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_tmn
+msgid "TMN"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Tax"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_partner__l10n_cl_sii_taxpayer_type
+#: model:ir.model.fields,field_description:l10n_cl.field_res_users__l10n_cl_sii_taxpayer_type
+msgid "Taxpayer Types"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:76
+#, python-format
+msgid "The validation digit is not valid."
+msgstr "El dígito de validación no es correcto"
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Total"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_u
+msgid "U(JGO)"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:16
+#: selection:res.partner,l10n_cl_sii_taxpayer_type:0
+#, python-format
+msgid "VAT Affected (1st Category)"
+msgstr "IVA afecto 1ª categoría"
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_account_move__partner_id_vat
+msgid "VAT No"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.actions.act_window,name:l10n_cl.vendor_bills_and_refunds
+#: model:ir.ui.menu,name:l10n_cl.menu_vendor_bills_and_refunds
+msgid "(CL) Vendor Bills and Refunds"
+msgstr "(CL) Facturas y notas de crédito de proveedores"
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/account_move.py:54
+#, python-format
+msgid "You can not use a %s document type with this tax payer type"
+msgstr "No puedes usar un tipo de documento %s con este tipo de contribuyente "
diff --git a/addons/l10n_cl/i18n/l10n_cl.pot b/addons/l10n_cl/i18n/l10n_cl.pot
new file mode 100644
index 00000000000..6d6b7c9e422
--- /dev/null
+++ b/addons/l10n_cl/i18n/l10n_cl.pot
@@ -0,0 +1,509 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * l10n_cl
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 13.0alpha1+e\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-08-11 18:27+0000\n"
+"PO-Revision-Date: 2019-08-11 18:27+0000\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_res_partner__l10n_cl_sii_taxpayer_type
+#: model:ir.model.fields,help:l10n_cl.field_res_users__l10n_cl_sii_taxpayer_type
+msgid ""
+"1 - VAT Affected (1st Category) (Most of the cases)\n"
+"2 - Fees Receipt Issuer (Applies to suppliers who issue fees receipt)\n"
+"3 - End consumer (only receipts)\n"
+"4 - Foreigner"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Accounting Date"
+msgstr ""
+
+#. module: l10n_cl
+#: model:product.product,name:l10n_cl.product_product_ad_valorem
+#: model:product.template,name:l10n_cl.product_product_ad_valorem_product_template
+msgid "Ad-Valorem"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Amount Due"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Amount Untaxed"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_account_move__l10n_latam_internal_type
+#: model:ir.model.fields,help:l10n_cl.field_l10n_latam_document_type__internal_type
+msgid ""
+"Analog to odoo account.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_cl
+#: model:uom.uom,name:l10n_cl.product_uom_bar
+msgid "BAR"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_bank
+msgid "Bank"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_carton
+msgid "CARTON"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_CIe
+msgid "CIe"
+msgstr ""
+
+#. module: l10n_cl
+#: model:product.product,description:l10n_cl.product_product_ad_valorem
+#: model:product.template,description:l10n_cl.product_product_ad_valorem_product_template
+msgid "Cargo para calculo de Ad-Valorem en DIN"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.ui.menu,name:l10n_cl.account_reports_cl_statements_menu
+msgid "Chile"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_bank__l10n_cl_sbif_code
+msgid "Cod. SBIF"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_account_move__l10n_latam_document_type_id_code
+msgid "Code used by different localizations"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_company
+msgid "Companies"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_res_company__l10n_cl_rut_dv
+#: model:ir.model.fields,help:l10n_cl.field_res_partner__l10n_cl_rut_dv
+#: model:ir.model.fields,help:l10n_cl.field_res_users__l10n_cl_rut_dv
+msgid ""
+"Computed field that returns RUT or nothing if this one is not set for the "
+"partner"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_res_company__l10n_cl_rut
+#: model:ir.model.fields,help:l10n_cl.field_res_partner__l10n_cl_rut
+#: model:ir.model.fields,help:l10n_cl.field_res_users__l10n_cl_rut
+msgid ""
+"Computed field that will convert the given rut number to often local used "
+"format"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_partner
+msgid "Contact"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_country
+#: model:ir.model.fields,field_description:l10n_cl.field_res_partner__country_id
+#: model:ir.model.fields,field_description:l10n_cl.field_res_users__country_id
+msgid "Country"
+msgstr ""
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Credit Notes"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.account.type,name:l10n_cl.account_account_type_NCLASIFICADO
+msgid "Cuentas No Clasificadas"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_res_currency
+msgid "Currency"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_currency__l10n_cl_currency_code
+msgid "Currency Code"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_country__l10n_cl_customs_code
+msgid "Customs Code"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_country__l10n_cl_customs_abbreviation
+#: model:ir.model.fields,field_description:l10n_cl.field_res_country__l10n_cl_customs_name
+msgid "Customs Name"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_DNI
+msgid "DNI"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_move_form
+msgid "Datos adic. dirección y Ciudad"
+msgstr ""
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Debit Notes"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_account_move__l10n_latam_document_type_id_code
+msgid "Doc Type"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:18
+#: selection:res.partner,l10n_cl_sii_taxpayer_type:0
+#, python-format
+msgid "End Consumer"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.category,name:l10n_cl.uom_categ_energy
+msgid "Energía"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:17
+#: selection:res.partner,l10n_cl_sii_taxpayer_type:0
+#, python-format
+msgid "Fees Receipt Issuer (2nd category)"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Folio"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:19
+#: selection:res.partner,l10n_cl_sii_taxpayer_type:0
+#, python-format
+msgid "Foreigner"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_hl
+msgid "HL"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_ila
+msgid "ILA"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_iva_19
+msgid "IVA 19%"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,help:l10n_cl.field_account_move__partner_id_vat
+msgid "Identification Number for selected type."
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_impuestos_especificos
+msgid "Impuestos Específicos"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_l10n_latam_document_type__internal_type
+msgid "Internal Type"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:78
+#, python-format
+msgid "Invalid length."
+msgstr ""
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Invoices"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Invoices and Refunds"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_company__l10n_cl_rut
+#: model:ir.model.fields,field_description:l10n_cl.field_res_partner__l10n_cl_rut
+#: model:ir.model.fields,field_description:l10n_cl.field_res_users__l10n_cl_rut
+msgid "Invoicing RUT"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_account_journal
+msgid "Journal"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_account_move
+msgid "Journal Entries"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_knfc
+msgid "KNFC"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_kwh
+msgid "KWH"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_account_move__l10n_latam_internal_type
+msgid "L10n Latam Internal Type"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_l10n_latam_document_type
+msgid "Latam Document Type"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_mm
+msgid "M2/1MM"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_mcub
+msgid "MCUB"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_mkwh
+msgid "MKWH"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_mt2
+msgid "MT2"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_account_journal_form_inherit_l10n_cl
+msgid "Next Number"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:109
+#, python-format
+msgid "No RUT configured for partner [%i] %s"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:80
+#, python-format
+msgid "Only numbers allowed."
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.category,name:l10n_cl.uom_categ_others
+msgid "Otros"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_par
+msgid "PAR"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_PAS
+msgid "PAS"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model,name:l10n_cl.model_uom_uom
+msgid "Product Unit of Measure"
+msgstr ""
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Purchase Invoices"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_qmb
+msgid "QMB"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_qnt
+msgid "QNT"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_RUN
+msgid "RUN"
+msgstr ""
+
+#. module: l10n_cl
+#: model:l10n_latam.identification.type,name:l10n_cl.it_RUT
+msgid "RUT"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_company__l10n_cl_rut_dv
+#: model:ir.model.fields,field_description:l10n_cl.field_res_partner__l10n_cl_rut_dv
+#: model:ir.model.fields,field_description:l10n_cl.field_res_users__l10n_cl_rut_dv
+msgid "RUT's DV"
+msgstr ""
+
+#. module: l10n_cl
+#: selection:l10n_latam.document.type,internal_type:0
+msgid "Receipt Invoice"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_move_form
+msgid "Región"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_retenciones
+msgid "Retenciones"
+msgstr ""
+
+#. module: l10n_cl
+#: model:account.tax.group,name:l10n_cl.tax_group_2da_categ
+msgid "Retención de 2da Categoría"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_sum
+#: model:uom.uom,name:l10n_cl.product_uom_sum_99
+msgid "S.U.M"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_uom_uom__l10n_cl_sii_code
+msgid "SII Code"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.actions.act_window,name:l10n_cl.sale_invoices_credit_notes
+#: model:ir.ui.menu,name:l10n_cl.menu_sale_invoices_credit_notes
+msgid "Sale Invoices and Credit Notes"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Sales Person"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_account_journal_form_inherit_l10n_cl
+msgid "Sequence"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_account_journal__l10n_cl_sequence_ids
+msgid "Sequences"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_currency__l10n_cl_short_name
+msgid "Short Name"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Source Document"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_tmb
+msgid "TMB"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_tmn
+msgid "TMN"
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Tax"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_res_partner__l10n_cl_sii_taxpayer_type
+#: model:ir.model.fields,field_description:l10n_cl.field_res_users__l10n_cl_sii_taxpayer_type
+msgid "Taxpayer Types"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:76
+#, python-format
+msgid "The validation digit is not valid."
+msgstr ""
+
+#. module: l10n_cl
+#: model_terms:ir.ui.view,arch_db:l10n_cl.view_complete_invoice_refund_tree
+msgid "Total"
+msgstr ""
+
+#. module: l10n_cl
+#: model:uom.uom,name:l10n_cl.product_uom_u
+msgid "U(JGO)"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/res_partner.py:16
+#: selection:res.partner,l10n_cl_sii_taxpayer_type:0
+#, python-format
+msgid "VAT Affected (1st Category)"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.model.fields,field_description:l10n_cl.field_account_move__partner_id_vat
+msgid "VAT No"
+msgstr ""
+
+#. module: l10n_cl
+#: model:ir.actions.act_window,name:l10n_cl.vendor_bills_and_refunds
+#: model:ir.ui.menu,name:l10n_cl.menu_vendor_bills_and_refunds
+msgid "Vendor Bills and Refunds"
+msgstr ""
+
+#. module: l10n_cl
+#: code:addons/l10n_cl/models/account_move.py:54
+#, python-format
+msgid "You can not use %s with this tax payer type"
+msgstr ""
diff --git a/addons/l10n_cl/models/__init__.py b/addons/l10n_cl/models/__init__.py
new file mode 100644
index 00000000000..93becf0fbb9
--- /dev/null
+++ b/addons/l10n_cl/models/__init__.py
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from . import account_chart_template
+from . import account_journal
+from . import account_move
+from . import account_tax
+from . import ir_sequence
+from . import l10n_latam_document_type
+from . import res_company
+from . import res_country
+from . import res_currency
+from . import res_partner
+from . import res_partner_bank
+from . import uom_uom
+
+
+
diff --git a/addons/l10n_cl/models/account_chart_template.py b/addons/l10n_cl/models/account_chart_template.py
new file mode 100644
index 00000000000..ef5864518fa
--- /dev/null
+++ b/addons/l10n_cl/models/account_chart_template.py
@@ -0,0 +1,15 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from odoo import models
+from odoo.http import request
+
+
+class AccountChartTemplate(models.Model):
+ _inherit = 'account.chart.template'
+
+ def _load(self, sale_tax_rate, purchase_tax_rate, company):
+ """ Set tax calculation rounding method required in Chilean localization"""
+ res = super()._load(sale_tax_rate, purchase_tax_rate, company)
+ if company.country_id.code == 'CL':
+ company.write({'tax_calculation_rounding_method': 'round_globally'})
+ return res
diff --git a/addons/l10n_cl/models/account_journal.py b/addons/l10n_cl/models/account_journal.py
new file mode 100644
index 00000000000..0fd9b4d39bb
--- /dev/null
+++ b/addons/l10n_cl/models/account_journal.py
@@ -0,0 +1,35 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from odoo import fields, models, api
+
+
+class AccountJournal(models.Model):
+ _inherit = "account.journal"
+
+ l10n_cl_sequence_ids = fields.Many2many(
+ 'ir.sequence', 'l10n_cl_journal_sequence_rel', 'journal_id', 'sequence_id', string='Sequences',
+ domain="[('l10n_latam_document_type_id', '!=', False)]")
+
+ def button_create_new_sequences(self):
+ self.ensure_one()
+ internal_types = ['invoice', 'debit_note', 'credit_note']
+ domain = [('country_id.code', '=', 'CL'), ('internal_type', 'in', internal_types), ('active', '=', True)]
+ documents = self.env['l10n_latam.document.type'].search(domain)
+ sequences = self.env['ir.sequence']
+ for document in documents:
+ sequences |= self.env['ir.sequence'].create(document.get_document_sequence_vals(self))
+ self.write({'l10n_cl_sequence_ids': [(4, s.id) for s in sequences]})
+
+ def create_document_sequences_cl(self):
+ self.ensure_one()
+ if (self.company_id.country_id != self.env.ref('base.cl')) or self.env['ir.sequence'].search(
+ [('l10n_latam_document_type_id', '!=', False)]) or self.type != 'sale' or not self.l10n_latam_use_documents:
+ return
+ self.button_create_new_sequences()
+
+ @api.model
+ def create(self, values):
+ """ Create Document sequences after create the journal """
+ res = super().create(values)
+ res.create_document_sequences_cl()
+ return res
diff --git a/addons/l10n_cl/models/account_move.py b/addons/l10n_cl/models/account_move.py
new file mode 100644
index 00000000000..010005ed040
--- /dev/null
+++ b/addons/l10n_cl/models/account_move.py
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo.exceptions import ValidationError
+
+from odoo import models, fields, api, _
+
+
+class AccountMove(models.Model):
+ _inherit = "account.move"
+
+ l10n_latam_document_type_id_code = fields.Char(related='l10n_latam_document_type_id.code', string='Doc Type')
+ partner_id_vat = fields.Char(related='partner_id.vat', string='VAT No')
+ l10n_latam_internal_type = fields.Selection(
+ related='l10n_latam_document_type_id.internal_type', string='L10n Latam Internal Type')
+
+ def _get_document_type_sequence(self):
+ """ Return the match sequences for the given journal and invoice """
+ self.ensure_one()
+ if self.journal_id.l10n_latam_use_documents and self.l10n_latam_country_code == 'CL':
+ res = self.journal_id.l10n_cl_sequence_ids.filtered(
+ lambda x: x.l10n_latam_document_type_id == self.l10n_latam_document_type_id)
+ return res
+ return super()._get_document_type_sequence()
+
+ def _get_l10n_latam_documents_domain(self):
+ self.ensure_one()
+ domain = super()._get_l10n_latam_documents_domain()
+ if (self.journal_id.l10n_latam_use_documents and
+ self.journal_id.company_id.country_id == self.env.ref('base.cl')):
+ if self.type in ['in_invoice', 'in_refund']:
+ if self.partner_id.l10n_cl_sii_taxpayer_type == '2':
+ domain += [('code', '=', '71')]
+ return domain
+ document_type_ids = self.journal_id.l10n_cl_sequence_ids.mapped('l10n_latam_document_type_id').ids
+ domain += [('id', 'in', document_type_ids)]
+ if self.partner_id.l10n_cl_sii_taxpayer_type == '3':
+ domain += [('code', 'in', ['35', '38', '39', '41'])]
+ return domain
+
+ @api.constrains('type', 'l10n_latam_document_type_id')
+ def _check_invoice_type_document_type(self):
+ super()._check_invoice_type_document_type()
+ for rec in self.filtered('l10n_latam_document_type_id'):
+ tax_payer_type = rec.partner_id.l10n_cl_sii_taxpayer_type
+ latam_document_type_code = rec.l10n_latam_document_type_id.code
+ if not tax_payer_type and latam_document_type_code not in {'35', '38', '39', '41'}:
+ raise ValidationError(_('Tax payer type is mandatory for this type of document. '
+ 'Please set the current tax payer type of this client'))
diff --git a/addons/l10n_cl/models/account_tax.py b/addons/l10n_cl/models/account_tax.py
new file mode 100644
index 00000000000..c1edd934a50
--- /dev/null
+++ b/addons/l10n_cl/models/account_tax.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import fields, models
+
+
+class AccountTax(models.Model):
+ _name = 'account.tax'
+ _inherit = 'account.tax'
+
+ l10n_cl_sii_code = fields.Integer('SII Code')
+
+
+class AccountTaxTemplate(models.Model):
+ _name = 'account.tax.template'
+ _inherit = 'account.tax.template'
+
+ l10n_cl_sii_code = fields.Integer('SII Code')
+
+ def _get_tax_vals(self, company, tax_template_to_tax):
+ self.ensure_one()
+ vals = super(AccountTaxTemplate, self)._get_tax_vals(company, tax_template_to_tax)
+ vals.update({
+ 'l10n_cl_sii_code': self.l10n_cl_sii_code,
+ })
+ if self.tax_group_id:
+ vals['tax_group_id'] = self.tax_group_id.id
+ return vals
diff --git a/addons/l10n_cl/models/ir_sequence.py b/addons/l10n_cl/models/ir_sequence.py
new file mode 100644
index 00000000000..6a3331a6628
--- /dev/null
+++ b/addons/l10n_cl/models/ir_sequence.py
@@ -0,0 +1,11 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import fields, models
+
+
+class IrSequence(models.Model):
+
+ _inherit = 'ir.sequence'
+
+ l10n_cl_journal_ids = fields.Many2many('account.journal', 'l10n_cl_journal_sequence_rel', 'sequence_id',
+ 'journal_id', 'Journals', readonly=True)
+
diff --git a/addons/l10n_cl/models/l10n_latam_document_type.py b/addons/l10n_cl/models/l10n_latam_document_type.py
new file mode 100644
index 00000000000..983f07de45a
--- /dev/null
+++ b/addons/l10n_cl/models/l10n_latam_document_type.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import models, fields
+
+
+class L10nLatamDocumentType(models.Model):
+
+ _inherit = 'l10n_latam.document.type'
+
+ internal_type = fields.Selection(
+ selection_add=[
+ ('invoice', 'Invoices'),
+ ('invoice_in', 'Purchase Invoices'),
+ ('debit_note', 'Debit Notes'),
+ ('credit_note', 'Credit Notes'),
+ ('receipt_invoice', 'Receipt Invoice')])
+
+ def get_document_sequence_vals(self, journal):
+ values = super(L10nLatamDocumentType, self).get_document_sequence_vals(journal)
+ if self.country_id != self.env.ref('base.cl'):
+ return values
+ values.update({
+ 'padding': 6,
+ 'implementation': 'no_gap',
+ 'l10n_latam_document_type_id': self.id,
+ 'prefix': None
+ })
+ return values
diff --git a/addons/l10n_cl/models/res_company.py b/addons/l10n_cl/models/res_company.py
new file mode 100644
index 00000000000..85426eb6669
--- /dev/null
+++ b/addons/l10n_cl/models/res_company.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import models, fields
+
+
+class ResCompany(models.Model):
+ _inherit = "res.company"
+
+ def _localization_use_documents(self):
+ """ Chilean localization use documents """
+ self.ensure_one()
+ return True if self.country_id == self.env.ref('base.cl') else super()._localization_use_documents()
diff --git a/addons/l10n_cl/models/res_country.py b/addons/l10n_cl/models/res_country.py
new file mode 100644
index 00000000000..213e0a79fe3
--- /dev/null
+++ b/addons/l10n_cl/models/res_country.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import fields, models
+
+
+class ResPartner(models.Model):
+ _name = 'res.country'
+ _inherit = 'res.country'
+
+ l10n_cl_customs_code = fields.Char('Customs Code')
+ l10n_cl_customs_name = fields.Char('Customs Name')
+ l10n_cl_customs_abbreviation = fields.Char('Customs Name')
diff --git a/addons/l10n_cl/models/res_currency.py b/addons/l10n_cl/models/res_currency.py
new file mode 100644
index 00000000000..473cad7f794
--- /dev/null
+++ b/addons/l10n_cl/models/res_currency.py
@@ -0,0 +1,10 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import _, api, fields, models
+
+
+class ResCurrency(models.Model):
+ _name = "res.currency"
+ _inherit = "res.currency"
+
+ l10n_cl_currency_code = fields.Char('Currency Code')
+ l10n_cl_short_name = fields.Char('Short Name')
diff --git a/addons/l10n_cl/models/res_partner.py b/addons/l10n_cl/models/res_partner.py
new file mode 100644
index 00000000000..3fee54dd05d
--- /dev/null
+++ b/addons/l10n_cl/models/res_partner.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import _, api, fields, models
+from odoo.exceptions import UserError, ValidationError
+
+
+class ResPartner(models.Model):
+ _name = 'res.partner'
+ _inherit = 'res.partner'
+
+ _sii_taxpayer_types = [
+ ('1', _('VAT Affected (1st Category)')),
+ ('2', _('Fees Receipt Issuer (2nd category)')),
+ ('3', _('End Consumer')),
+ ('4', _('Foreigner')),
+ ]
+
+ l10n_cl_sii_taxpayer_type = fields.Selection(_sii_taxpayer_types,
+ 'Taxpayer Types', index=True, default='1',
+ help='1 - VAT Affected (1st Category) (Most of the cases)\n'
+ '2 - Fees Receipt Issuer (Applies to suppliers who issue fees receipt)\n'
+ '3 - End consumer (only receipts)\n'
+ '4 - Foreigner'
+ )
\ No newline at end of file
diff --git a/addons/l10n_cl/models/res_partner_bank.py b/addons/l10n_cl/models/res_partner_bank.py
new file mode 100644
index 00000000000..611c14e17d1
--- /dev/null
+++ b/addons/l10n_cl/models/res_partner_bank.py
@@ -0,0 +1,9 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import fields, models
+
+
+class ResBank(models.Model):
+ _name = 'res.bank'
+ _inherit = 'res.bank'
+
+ l10n_cl_sbif_code = fields.Char('Cod. SBIF', size=10)
diff --git a/addons/l10n_cl/models/uom_uom.py b/addons/l10n_cl/models/uom_uom.py
new file mode 100644
index 00000000000..f4ec5de0a58
--- /dev/null
+++ b/addons/l10n_cl/models/uom_uom.py
@@ -0,0 +1,9 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from odoo import fields, models, api, _
+
+
+class UomUom(models.Model):
+ _inherit = 'uom.uom'
+
+ l10n_cl_sii_code = fields.Char('SII Code')
diff --git a/addons/l10n_cl/static/description/icon.png b/addons/l10n_cl/static/description/icon.png
index 4443e289bfc..4a5621bda59 100644
Binary files a/addons/l10n_cl/static/description/icon.png and b/addons/l10n_cl/static/description/icon.png differ
diff --git a/addons/l10n_cl/static/sii_logo.jpeg b/addons/l10n_cl/static/sii_logo.jpeg
new file mode 100644
index 00000000000..52ffded78a2
Binary files /dev/null and b/addons/l10n_cl/static/sii_logo.jpeg differ
diff --git a/addons/l10n_cl/static/tgr_logo.png b/addons/l10n_cl/static/tgr_logo.png
new file mode 100644
index 00000000000..6edcce87e9d
Binary files /dev/null and b/addons/l10n_cl/static/tgr_logo.png differ
diff --git a/addons/l10n_cl/views/account_journal_view.xml b/addons/l10n_cl/views/account_journal_view.xml
new file mode 100644
index 00000000000..8616a58d210
--- /dev/null
+++ b/addons/l10n_cl/views/account_journal_view.xml
@@ -0,0 +1,34 @@
+
+
+
+
+ account.journal
+ account.journal.form.inherit.cl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {'invisible': [('l10n_latam_use_documents', '=', True), ('l10n_latam_country_code', '=', 'CL')]}
+
+
+ {'invisible': [('l10n_latam_use_documents', '=', True), ('l10n_latam_country_code', '=', 'CL')]}
+
+
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/views/account_move_view.xml b/addons/l10n_cl/views/account_move_view.xml
new file mode 100644
index 00000000000..685d8cbde60
--- /dev/null
+++ b/addons/l10n_cl/views/account_move_view.xml
@@ -0,0 +1,70 @@
+
+
+
+
+ account.move.form.inherit.l10n.cl
+ account.move
+
+
+
+
+ {'invisible': [('type', '=', 'out_invoice'), ('l10n_latam_internal_type', '!=', 'debit_note')], 'required': [('l10n_latam_internal_type', '=', 'debit_note')]}
+
+
+
+
+
+ account.move.tree2
+ account.move
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Sale Invoices and Credit Notes
+
+ account.move
+ [('type', 'in', ['out_invoice', 'out_refund'])]
+ {'default_type': 'out_invoice'}
+ current
+ tree,form
+
+
+
+ Vendor Bills and Refunds
+
+ account.move
+ [('type', 'in', ['in_invoice', 'in_refund'])]
+ {'default_type': 'in_invoice'}
+ current
+ tree,form
+
+
+
+
+
+
diff --git a/addons/l10n_cl/views/account_tax_view.xml b/addons/l10n_cl/views/account_tax_view.xml
new file mode 100644
index 00000000000..4d99ae7170d
--- /dev/null
+++ b/addons/l10n_cl/views/account_tax_view.xml
@@ -0,0 +1,48 @@
+
+
+
+
+ account.tax.form
+ account.tax
+
+
+
+
+
+
+
+
+
+ account.tax.sii.code.tree
+ account.tax
+
+
+
+
+
+
+
+
+
+ account.tax.template.form
+ account.tax.template
+
+
+
+
+
+
+
+
+
+ account.tax.template.sii.tree
+ account.tax.template
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/views/ir_sequence_view.xml b/addons/l10n_cl/views/ir_sequence_view.xml
new file mode 100644
index 00000000000..83d7c3c3f23
--- /dev/null
+++ b/addons/l10n_cl/views/ir_sequence_view.xml
@@ -0,0 +1,43 @@
+
+
+
+
+ ir.sequence.form
+ ir.sequence
+
+
+
+ 1
+
+
+
+
+
+
+
+
+ ir.sequence.tree
+ ir.sequence
+
+
+
+ {'column_invisible': True}
+
+
+
+
+
+ ir.sequence.search
+ ir.sequence
+
+
+
+ 1
+
+
+
+
+
+
+
+
diff --git a/addons/l10n_cl/views/res_bank_view.xml b/addons/l10n_cl/views/res_bank_view.xml
new file mode 100644
index 00000000000..653180a070b
--- /dev/null
+++ b/addons/l10n_cl/views/res_bank_view.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ res.bank.form
+ res.bank
+
+
+
+
+
+
+
+
+
+ bank.bank.tree
+ res.bank
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/views/res_country_view.xml b/addons/l10n_cl/views/res_country_view.xml
new file mode 100644
index 00000000000..4879b79ccb4
--- /dev/null
+++ b/addons/l10n_cl/views/res_country_view.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ res.country.form
+ res.country
+
+
+
+
+
+
+
+
+
+
+
+ res.country.tree
+ res.country
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/addons/l10n_cl/views/res_partner.xml b/addons/l10n_cl/views/res_partner.xml
new file mode 100644
index 00000000000..715275442b2
--- /dev/null
+++ b/addons/l10n_cl/views/res_partner.xml
@@ -0,0 +1,25 @@
+
+
+
+
+ res.partner.placeholders.l10n_cl.form
+
+ res.partner
+
+
+ Datos adic. dirección y Ciudad
+
+
+ {'placeholder': 'Comuna'}
+
+
+ Región
+
+
+
+
+
+
+
+
+
\ No newline at end of file