From 63435fbbedad39d2f5ccfd8c2104063bc5e56840 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 10 Feb 2022 08:41:53 +0100 Subject: [PATCH] [FIX] account_chart_update: cash_basis_base_account_id no longer exists This field disappears in this version. --- account_chart_update/__manifest__.py | 2 +- .../i18n/account_chart_update.pot | 29 ++++++++++++++++++- .../wizard/wizard_chart_update.py | 3 -- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/account_chart_update/__manifest__.py b/account_chart_update/__manifest__.py index 47122187..253e4561 100644 --- a/account_chart_update/__manifest__.py +++ b/account_chart_update/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Detect changes and update the Account Chart from a template", "summary": "Wizard to update a company's account chart from a template", - "version": "14.0.2.0.0", + "version": "14.0.2.0.1", "author": "Tecnativa, BCIM, Okia, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-financial-tools", "depends": ["account"], diff --git a/account_chart_update/i18n/account_chart_update.pot b/account_chart_update/i18n/account_chart_update.pot index b7eec28d..222fb08a 100644 --- a/account_chart_update/i18n/account_chart_update.pot +++ b/account_chart_update/i18n/account_chart_update.pot @@ -424,6 +424,13 @@ msgstr "" msgid "No fiscal position found with this name." msgstr "" +#. module: account_chart_update +#: code:addons/account_chart_update/wizard/wizard_chart_update.py:0 +#: code:addons/account_chart_update/wizard/wizard_chart_update.py:0 +#, python-format +msgid "No real account found for template account with ID %s" +msgstr "" + #. module: account_chart_update #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__code_digits msgid "No. of Digits to use for account code" @@ -458,7 +465,7 @@ msgstr "" #. module: account_chart_update #: code:addons/account_chart_update/wizard/wizard_chart_update.py:0 #, python-format -msgid "Post-updated tax %s." +msgid "Post-updated account fields for taxes with IDs %s." msgstr "" #. module: account_chart_update @@ -590,11 +597,26 @@ msgstr "" msgid "Update Chart Template" msgstr "" +#. module: account_chart_update +#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_tax_repartition_line_account +msgid "Update Tax Accounts" +msgstr "" + +#. module: account_chart_update +#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_tax_repartition_line_tags +msgid "Update Tax Tags" +msgstr "" + #. module: account_chart_update #: model_terms:ir.ui.view,arch_db:account_chart_update.res_config_settings_view_form msgid "Update Taxes, fiscal positions or chart of accounts." msgstr "" +#. module: account_chart_update +#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__update_tax_repartition_line_account +msgid "Update account_id field on existing Tax repartition lines" +msgstr "" + #. module: account_chart_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_account msgid "Update accounts" @@ -631,6 +653,11 @@ msgstr "" msgid "Update records?" msgstr "" +#. module: account_chart_update +#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__update_tax_repartition_line_tags +msgid "Update tag_ids field on existing Tax repartition lines" +msgstr "" + #. module: account_chart_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_tax msgid "Update taxes" diff --git a/account_chart_update/wizard/wizard_chart_update.py b/account_chart_update/wizard/wizard_chart_update.py index cc04a8d6..26de2f35 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -961,7 +961,6 @@ class WizardUpdateChartsAccounts(models.TransientModel): # We defer update because account might not be created yet if key in [ "cash_basis_transition_account_id", - "cash_basis_base_account_id", "invoice_repartition_line_ids", "refund_repartition_line_ids", ]: @@ -1055,7 +1054,6 @@ class WizardUpdateChartsAccounts(models.TransientModel): vals = {} for fld in [ "cash_basis_transition_account_id", - "cash_basis_base_account_id", ]: if v[fld]: acc_id = self.find_account_by_templates( @@ -1095,7 +1093,6 @@ class WizardUpdateChartsAccounts(models.TransientModel): for key, value in self.diff_fields(template, tax).items(): if key in { "cash_basis_transition_account_id", - "cash_basis_base_account_id", "invoice_repartition_line_ids", "refund_repartition_line_ids", }: