2
0

[FIX] account_chart_update: cash_basis_base_account_id no longer exists

This field disappears in this version.
This commit is contained in:
Pedro M. Baeza 2022-02-10 08:41:53 +01:00 committed by Luis J. Salvatierra
parent 7fbf1ab7c6
commit 63435fbbed
3 changed files with 29 additions and 5 deletions

View File

@ -7,7 +7,7 @@
{ {
"name": "Detect changes and update the Account Chart from a template", "name": "Detect changes and update the Account Chart from a template",
"summary": "Wizard to update a company's 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)", "author": "Tecnativa, BCIM, Okia, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools", "website": "https://github.com/OCA/account-financial-tools",
"depends": ["account"], "depends": ["account"],

View File

@ -424,6 +424,13 @@ msgstr ""
msgid "No fiscal position found with this name." msgid "No fiscal position found with this name."
msgstr "" 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 #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__code_digits #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__code_digits
msgid "No. of Digits to use for account code" msgid "No. of Digits to use for account code"
@ -458,7 +465,7 @@ msgstr ""
#. module: account_chart_update #. 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 #, python-format
msgid "Post-updated tax %s." msgid "Post-updated account fields for taxes with IDs %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
@ -590,11 +597,26 @@ msgstr ""
msgid "Update Chart Template" msgid "Update Chart Template"
msgstr "" 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 #. module: account_chart_update
#: model_terms:ir.ui.view,arch_db:account_chart_update.res_config_settings_view_form #: model_terms:ir.ui.view,arch_db:account_chart_update.res_config_settings_view_form
msgid "Update Taxes, fiscal positions or chart of accounts." msgid "Update Taxes, fiscal positions or chart of accounts."
msgstr "" 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 #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_account #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_account
msgid "Update accounts" msgid "Update accounts"
@ -631,6 +653,11 @@ msgstr ""
msgid "Update records?" msgid "Update records?"
msgstr "" 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 #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_tax #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_tax
msgid "Update taxes" msgid "Update taxes"

View File

@ -961,7 +961,6 @@ class WizardUpdateChartsAccounts(models.TransientModel):
# We defer update because account might not be created yet # We defer update because account might not be created yet
if key in [ if key in [
"cash_basis_transition_account_id", "cash_basis_transition_account_id",
"cash_basis_base_account_id",
"invoice_repartition_line_ids", "invoice_repartition_line_ids",
"refund_repartition_line_ids", "refund_repartition_line_ids",
]: ]:
@ -1055,7 +1054,6 @@ class WizardUpdateChartsAccounts(models.TransientModel):
vals = {} vals = {}
for fld in [ for fld in [
"cash_basis_transition_account_id", "cash_basis_transition_account_id",
"cash_basis_base_account_id",
]: ]:
if v[fld]: if v[fld]:
acc_id = self.find_account_by_templates( 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(): for key, value in self.diff_fields(template, tax).items():
if key in { if key in {
"cash_basis_transition_account_id", "cash_basis_transition_account_id",
"cash_basis_base_account_id",
"invoice_repartition_line_ids", "invoice_repartition_line_ids",
"refund_repartition_line_ids", "refund_repartition_line_ids",
}: }: