diff --git a/account_chart_update/__openerp__.py b/account_chart_update/__openerp__.py index 80afbf9fe..37f694523 100644 --- a/account_chart_update/__openerp__.py +++ b/account_chart_update/__openerp__.py @@ -70,6 +70,7 @@ Any problem found while updating will be shown on the last step. "demo": [], "data": [ 'wizard/wizard_chart_update_view.xml', + 'views/account_tax_code_view.xml', ], "active": False, 'installable': True diff --git a/account_chart_update/i18n/account_chart_update.pot b/account_chart_update/i18n/account_chart_update.pot index f977ae4e9..dc6710656 100644 --- a/account_chart_update/i18n/account_chart_update.pot +++ b/account_chart_update/i18n/account_chart_update.pot @@ -749,3 +749,8 @@ msgstr "" msgid "Tax code template" msgstr "" +#. module: account_chart_update +#: field:account.tax.code,active:0 +msgid "Active" +msgstr "" + diff --git a/account_chart_update/i18n/es.po b/account_chart_update/i18n/es.po index e508456af..0c870616e 100644 --- a/account_chart_update/i18n/es.po +++ b/account_chart_update/i18n/es.po @@ -762,20 +762,8 @@ msgstr "" msgid "Tax code template" msgstr "Plantilla de código de impuesto" -#~ msgid "Fiscal position" -#~ msgstr "Posición fiscal" +#. module: account_chart_update +#: field:account.tax.code,active:0 +msgid "Active" +msgstr "Activo" -#~ msgid "Account" -#~ msgstr "Cuenta" - -#~ msgid "Tax" -#~ msgstr "Impuesto" - -#~ msgid "Tax code" -#~ msgstr "Código de impuesto" - -#, python-format -#~ msgid "Tax mapping not found on the fiscal position instance: %s -> None.\n" -#~ msgstr "" -#~ "Mapeo de cuentas no encontrado en la instancia de posición fiscal: %s -> " -#~ "Ninguno.\n" diff --git a/account_chart_update/model/account_tax_code.py b/account_chart_update/model/account_tax_code.py index ae68fd812..3826b4c13 100644 --- a/account_chart_update/model/account_tax_code.py +++ b/account_chart_update/model/account_tax_code.py @@ -25,3 +25,13 @@ class AccountTaxCode(models.Model): _inherit = 'account.tax.code' active = fields.Boolean('Active', default=True) + + def _sum(self, cr, uid, ids, name, args, context, where='', + where_params=()): + try: + return super(AccountTaxCode, self)._sum( + cr, uid, ids, name, args, context, where=where, + where_params=where_params) + except: + cr.rollback() + return dict.fromkeys(ids, 0.0) diff --git a/account_chart_update/views/account_tax_code_view.xml b/account_chart_update/views/account_tax_code_view.xml new file mode 100644 index 000000000..ed774374d --- /dev/null +++ b/account_chart_update/views/account_tax_code_view.xml @@ -0,0 +1,17 @@ + + + + + + account.tax.code.form.active + account.tax.code + + + + + + + + + +