[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
parent 6c9e8258af
commit 10c727d757
2 changed files with 1 additions and 4 deletions

View File

@@ -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"],

View File

@@ -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",
}: