From 8f88623cb0a9368cfee36a40b0f3e8965f3f8ce9 Mon Sep 17 00:00:00 2001 From: nvi-openerp Date: Thu, 28 Oct 2010 13:34:39 +0200 Subject: [PATCH] [ADD] Added Guatemala accounting localization bzr revid: nicolas.vanhoren@openerp.com-20101028113439-zj6mq35rucloq2ih --- addons/l10n_gt/__init__.py | 25 ++ addons/l10n_gt/__openerp__.py | 58 +++ addons/l10n_gt/account_chart.xml | 651 ++++++++++++++++++++++++++++++ addons/l10n_gt/account_tax.xml | 120 ++++++ addons/l10n_gt/account_types.xml | 61 +++ addons/l10n_gt/i18n/es_ES.po | 88 ++++ addons/l10n_gt/i18n/l10n_gt.pot | 83 ++++ addons/l10n_gt/l10n_gt_wizard.xml | 14 + addons/l10n_gt/partner.py | 19 + 9 files changed, 1119 insertions(+) create mode 100644 addons/l10n_gt/__init__.py create mode 100644 addons/l10n_gt/__openerp__.py create mode 100644 addons/l10n_gt/account_chart.xml create mode 100644 addons/l10n_gt/account_tax.xml create mode 100644 addons/l10n_gt/account_types.xml create mode 100644 addons/l10n_gt/i18n/es_ES.po create mode 100644 addons/l10n_gt/i18n/l10n_gt.pot create mode 100644 addons/l10n_gt/l10n_gt_wizard.xml create mode 100644 addons/l10n_gt/partner.py diff --git a/addons/l10n_gt/__init__.py b/addons/l10n_gt/__init__.py new file mode 100644 index 00000000000..c00dcc54498 --- /dev/null +++ b/addons/l10n_gt/__init__.py @@ -0,0 +1,25 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Copyright (c) 2004-2010 Soluciones Tecnologócias Prisma S.A. All Rights Reserved. +# José Rodrigo Fernández Menegazzo, Soluciones Tecnologócias Prisma S.A. +# (http://www.solucionesprisma.com) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +import partner + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/l10n_gt/__openerp__.py b/addons/l10n_gt/__openerp__.py new file mode 100644 index 00000000000..6cb30f6c7bb --- /dev/null +++ b/addons/l10n_gt/__openerp__.py @@ -0,0 +1,58 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Copyright (c) 2004-2010 Soluciones Tecnologócias Prisma S.A. All Rights Reserved. +# José Rodrigo Fernández Menegazzo, Soluciones Tecnologócias Prisma S.A. +# (http://www.solucionesprisma.com) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +# +# This module provides a minimal Guatemalan chart of accounts for building upon further +# Open ERP's default currency and accounts are remapped to this chart +# +# This module is based on the UK minimal chart of accounts: +# Copyright (c) 2004-2009 Seath Solutions Ltd. All Rights Reserved. +# Geoff Gardiner, Seath Solutions Ltd (http://www.seathsolutions.com/) +# +# This module works for Open ERP 4.1.0 (and, assumed, onwards). +# This module does not work for Open ERP 4.0.2 and before. +# +# Cash tax accounting can be accommodated with further processing in Open ERP +# +# Status 2.0 - tested on Open ERP 5.0.6 +# + +{ + 'name': 'Guatemala - minimal', + 'version': '2.0', + 'category': 'Localisation/Account Charts', + 'description': """This is the base module to manage a minimal accounting chart for Guatemala in Open ERP.""", + 'author': 'José Rodrigo Fernández Menegazzo', + 'website': 'http://solucionesprisma.com/', + 'depends': ['base', 'base_vat', 'account', 'account_chart'], + 'init_xml': [], + 'update_xml': [ + 'account_types.xml', + 'account_chart.xml', + 'account_tax.xml', + 'l10n_gt_wizard.xml' + ], + 'demo_xml': [], + 'installable': True, + 'certificate': '', +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/l10n_gt/account_chart.xml b/addons/l10n_gt/account_chart.xml new file mode 100644 index 00000000000..8d5de2f3104 --- /dev/null +++ b/addons/l10n_gt/account_chart.xml @@ -0,0 +1,651 @@ + + + + + + + + + - + Plan contable de Guatemala (sencillo) + + view + + + + + + + A + Balance General + + view + + + + + 1 + Activo + + view + + + + + 1.1 + Activo Corriente + + view + + + + + 1.1.01 + Caja y Bancos + + view + + + + + 1.1.01.01 + Caja Chica + + other + + + + + 1.1.02 + Cuentas y Documentos por Cobrar + + view + + + + + 1.1.02.01 + Cuentas por Cobrar Generales + + receivable + + + + + + 1.1.02.02 + Cuentas por Cobrar Empresas Afilidas + + receivable + + + + + + 1.1.02.03 + Prestamos al Personal + + receivable + + + + + + 1.1.02.04 + Otras Cuentas por Cobrar + + receivable + + + + + + 1.1.03 + IVA por Cobrar + + view + + + + + 1.1.03.01 + IVA por Cobrar + + other + + + + + 1.1.03.02 + Retenciones de IVA recibidas + + other + + + + + 1.1.04 + Inventario + + view + + + + + 1.2 + No Corriente + + view + + + + + 1.2.01 + Propiedad, Planta y Equipo + + view + + + + + 1.2.01.01 + Propiedad, Planta y Equipo + + other + + + + + 1.2.02 + Depreciaciones Acumuladas + + view + + + + + 1.2.02.01 + Depreciaciones Acumuladas + + other + + + + + 1.3 + Diferido + + view + + + + + 1.3.01 + Gastos por Amortizar + + view + + + + + 1.3.01.01 + Gastos por Amortizar + + other + + + + + 1.3.02 + Gastos Anticipados + + view + + + + + 1.3.02.01 + Gastos Anticipados + + other + + + + + 1.3.03 + Gastos de Organización + + view + + + + + 1.3.03.01 + Gastos de Organización + + other + + + + + 1.3.04 + Otros Activos + + view + + + + + 1.3.04.01 + Otros Activos + + other + + + + + 2 + Pasivo + + view + + + + + 2.1 + Pasivo Corto Plazo + + view + + + + + 2.1.01 + Cuentas y Documentos por Pagar + + view + + + + + 2.1.01.01 + Cuentas y Documentos por Pagar + + payable + + + + + + 2.1.02 + IVA por Pagar + + view + + + + + 2.1.02.01 + IVA por Pagar + + other + + + + + 2.1.03 + Impuestos + + view + + + + + 2.1.03.01 + Impuestos + + other + + + + + 2.2 + Pasivo a Largo Plazo + + view + + + + + 2.2.01 + Provisión para Indemnizaciones + + view + + + + + 2.2.01.01 + Provisión para Indemnizaciones + + other + + + + + 2.3 + Créditos Diferidos + + view + + + + + 2.3.01 + Créditos Diferidos + + view + + + + + 2.3.01.01 + Anticipos + + other + + + + + 3 + Patrimonio + + view + + + + + 3.1 + Patrimonio de los Accionistas + + view + + + + + 3.1.01 + Patrimonio de los Accionistas + + view + + + + + 3.1.01.01 + Capital Autorizado, Suscríto y Pagado + + other + + + + + 3.1.01.02 + other + + view + + + + + 3.1.01.03 + Perdidas y Ganancias + + other + + + + + + + B + Estado de Resultados + + view + + + + + 4 + Ingresos + + view + + + + + 4.1 + Ventas + + view + + + + + 4.1.01 + Ventas Netas + + view + + + + + 4.1.01.01 + Ventas + + other + + + + + 4.1.01.02 + Descuentos Sobre Ventas + + other + + + + + 4.2 + Otros Ingresos + + view + + + + + 4.2.01 + Otros Ingresos + + view + + + + + 4.2.01.01 + Otros Ingresos + + other + + + + + 5 + Egresos + + view + + + + + 5.1 + Costos + + view + + + + + 5.1.01 + Costos de Ventas + + view + + + + + 5.1.01.01 + Costos de Ventas + + view + + + + + 6 + Gastos + + view + + + + + 6.1 + Gastos de Ventas + + view + + + + + 6.1.01 + Gastos de Ventas + + view + + + + + 6.1.01.01 + Gastos de Ventas + + other + + + + + 6.2 + Gastos de Operación + + view + + + + + 6.2.01 + Gastos de Administración + + view + + + + + 6.2.01.01 + Gastos de Administración + + other + + + + + 6.2.02 + Otros Gastos de Operación + + view + + + + + 6.2.02.01 + Otros Gastos de Operación + + other + + + + + 6.3 + Gastos no Deducibles + + view + + + + + 6.3.01 + Gastos no Deducibles + + view + + + + + 6.3.01.01 + Gastos no Deducibles + + other + + + + + 7 + Otros Gastos y Productos Financieros + + view + + + + + 7.1 + Otros Gastos y Productos Financieros + + view + + + + + 7.1.01 + Otros Gastos y Productos Financieros + + view + + + + + 7.1.01.01 + Otros Gastos Financieros + + other + + + + + 7.1.01.02 + Otros Productos Financieros + + other + + + + + + diff --git a/addons/l10n_gt/account_tax.xml b/addons/l10n_gt/account_tax.xml new file mode 100644 index 00000000000..8d25dafa77e --- /dev/null +++ b/addons/l10n_gt/account_tax.xml @@ -0,0 +1,120 @@ + + + + + + + + + General Guatemala + + + + + + Balance del IVA + + + + + + + IVA por Pagar Balance + + + + + IVA por Pagar + + + + + + + IVA por Cobrar Balance + + + + + IVA por Cobrar + + + + + + + Base Impositiva + + + + + + + Base Impositiva de Compras Balance + + + + + Base Impositiva de Compras + + + + + + + Base Impositiva de Ventas Balance + + + + + Base Impositiva de Ventas + + + + + + + Plantilla de cuentas de Guatemala (sencilla) + + + + + + + + + + + + + + IVA por Cobrar + + percent + + + + + + + purchase + + + + + + + IVA por Pagar + + percent + + + + + + + sale + + + + diff --git a/addons/l10n_gt/account_types.xml b/addons/l10n_gt/account_types.xml new file mode 100644 index 00000000000..001b7fd2eb0 --- /dev/null +++ b/addons/l10n_gt/account_types.xml @@ -0,0 +1,61 @@ + + + + + + + Cuentas por Cobrar + cxc + unreconciled + + + + Cuentas por Pagar + cxp + unreconciled + + + + Vista + Vista + none + + + + Ingresos + ingresos + none + + + + Gastos + gastos + none + + + + Impuestos + Impuestos + unreconciled + + + + Efectivo + Efectivo + balance + + + + Activo + Activo + balance + + + + Capital + capital + balance + + + + diff --git a/addons/l10n_gt/i18n/es_ES.po b/addons/l10n_gt/i18n/es_ES.po new file mode 100644 index 00000000000..1486a5c4fc9 --- /dev/null +++ b/addons/l10n_gt/i18n/es_ES.po @@ -0,0 +1,88 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * l10n_gt +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 5.0.1\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2009-05-19 14:31:42+0000\n" +"PO-Revision-Date: 2009-05-20 10:31:42+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_gt +#: model:account.account.type,name:l10n_gt.account_type_receivable +msgid "Receivable" +msgstr "Cuentas por Cobrar" + +#. module: l10n_gt +#: model:ir.module.module,description:l10n_gt.module_meta_information +msgid "This is the base module to manage the accounting chart for Guatemala in Open ERP." +msgstr "Este es el módulo base para manejar una contabilidad mínima para Guatemala" + +#. module: l10n_gt +#: constraint:account.account.template:0 +msgid "Error ! You can not create recursive account templates." +msgstr "Error, no puede crear machotes de cuentas recursivas" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_income +msgid "Income" +msgstr "Ingreso" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_tax +msgid "Tax" +msgstr "Impuesto" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_cash +msgid "Cash" +msgstr "Efectivo" + +#. module: l10n_gt +#: model:ir.actions.todo,note:l10n_gt.config_call_account_template_gt_minimal +msgid "Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated.\n" +" This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template." +msgstr "Genera la numenclatura contable a partir de un machote. Se le preguntará por el nombre de la empresa, el machote a usar, el número de digitos para generar en los códigos de las cuentas, una o más cuentas de banco, la moneda a usar para los libros. Este es el mismo asistente que se ejecuta al correr: Gestión Financiera/Configuración/Contabilidad Financiera/Plantillas/Generar plan contable a partir de una plantilla de plan contable +" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_payable +msgid "Payable" +msgstr "Cuentas por Pagar" + +#. module: l10n_gt +#: model:ir.module.module,shortdesc:l10n_gt.module_meta_information +msgid "Guatemala - minimal" +msgstr "Guatemala - mínima" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_equity +msgid "Equity" +msgstr "Patrimonio" + +#. module: l10n_gt +#: constraint:account.tax.code.template:0 +msgid "Error ! You can not create recursive Tax Codes." +msgstr "Error, no puede crear códigos de impuestos recursivos" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_expense +msgid "Expense" +msgstr "Gasto" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_view +msgid "View" +msgstr "Vista" + +#. module: l10n_gt +#: field:res.partner,vat:0 +msgid "VAT" +msgstr "NIT" diff --git a/addons/l10n_gt/i18n/l10n_gt.pot b/addons/l10n_gt/i18n/l10n_gt.pot new file mode 100644 index 00000000000..c1f386a76fb --- /dev/null +++ b/addons/l10n_gt/i18n/l10n_gt.pot @@ -0,0 +1,83 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * l10n_gt +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 5.0.1\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2009-05-19 14:36:37+0000\n" +"PO-Revision-Date: 2009-05-20 10:36:37+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_gt +#: model:account.account.type,name:l10n_gt.account_type_receivable +msgid "Receivable" +msgstr "" + +#. module: l10n_gt +#: model:ir.module.module,description:l10n_gt.module_meta_information +msgid "This is the base module to manage the accounting chart for Guatemala in Open ERP." +msgstr "" + +#. module: l10n_gt +#: constraint:account.account.template:0 +msgid "Error ! You can not create recursive account templates." +msgstr "" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_income +msgid "Income" +msgstr "" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_tax +msgid "Tax" +msgstr "" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_cash +msgid "Cash" +msgstr "" + +#. module: l10n_gt +#: model:ir.actions.todo,note:l10n_gt.config_call_account_template_gt_minimal +msgid "Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated.\n" +" This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template." +msgstr "" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_payable +msgid "Payable" +msgstr "" + +#. module: l10n_gt +#: model:ir.module.module,shortdesc:l10n_gt.module_meta_information +msgid "Guatemala - minimal" +msgstr "" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_equity +msgid "Equity" +msgstr "" + +#. module: l10n_gt +#: constraint:account.tax.code.template:0 +msgid "Error ! You can not create recursive Tax Codes." +msgstr "" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_expense +msgid "Expense" +msgstr "" + +#. module: l10n_gt +#: model:account.account.type,name:l10n_gt.account_type_view +msgid "View" +msgstr "" + diff --git a/addons/l10n_gt/l10n_gt_wizard.xml b/addons/l10n_gt/l10n_gt_wizard.xml new file mode 100644 index 00000000000..ae3c48a2431 --- /dev/null +++ b/addons/l10n_gt/l10n_gt_wizard.xml @@ -0,0 +1,14 @@ + + + + + + Generate Chart of Accounts from a Chart Template + Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus, the pure copy of chart Template is generated. + This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template. + + open + + + + diff --git a/addons/l10n_gt/partner.py b/addons/l10n_gt/partner.py new file mode 100644 index 00000000000..9d9971a7228 --- /dev/null +++ b/addons/l10n_gt/partner.py @@ -0,0 +1,19 @@ +# -*- encoding: utf-8 -*- + +from osv import osv +import netsvc + +class res_partner(osv.osv): + _inherit='res.partner' + + def __getattr__(self, attr): + if not attr.startswith('check_vat_'): + super(res_partner, self).__getattr__(attr) + + def validar_nit(numero): + return True + return validar_nit + +res_partner() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: