diff --git a/account_chart_update/README.rst b/account_chart_update/README.rst index 62f294002f7..65fa3bd8413 100644 --- a/account_chart_update/README.rst +++ b/account_chart_update/README.rst @@ -105,6 +105,8 @@ Contributors - Luis J. Salvatierra +- Daniel Reis (dreis@opensourceintegrators.com) + Maintainers ----------- diff --git a/account_chart_update/__manifest__.py b/account_chart_update/__manifest__.py index 90c0e513773..0f4fb2c247f 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": "16.0.2.0.6", + "version": "17.0.1.0.0", "author": "Tecnativa, BCIM, Okia, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-financial-tools", "depends": ["account"], diff --git a/account_chart_update/models/ir_model_fields.py b/account_chart_update/models/ir_model_fields.py index f7164322402..099402a21ee 100644 --- a/account_chart_update/models/ir_model_fields.py +++ b/account_chart_update/models/ir_model_fields.py @@ -14,4 +14,4 @@ def name_get(self): for record in self: res.append((record.id, f"{record.field_description} ({record.name})")) return res - return super(IrModelFields, self).name_get() + return super().name_get() diff --git a/account_chart_update/readme/CONTRIBUTORS.md b/account_chart_update/readme/CONTRIBUTORS.md index 05650a675d0..0f306ff819d 100644 --- a/account_chart_update/readme/CONTRIBUTORS.md +++ b/account_chart_update/readme/CONTRIBUTORS.md @@ -9,3 +9,4 @@ - Jairo Llopis () - [Factor Libre](https://factorlibre.com): - Luis J. Salvatierra +- Daniel Reis (dreis@opensourceintegrators.com) diff --git a/account_chart_update/static/description/index.html b/account_chart_update/static/description/index.html index 3b78bebaed4..3fbfbd4aa12 100644 --- a/account_chart_update/static/description/index.html +++ b/account_chart_update/static/description/index.html @@ -452,6 +452,7 @@

Contributors

  • Luis J. Salvatierra
  • +
  • Daniel Reis (dreis@opensourceintegrators.com)
  • diff --git a/account_chart_update/wizard/wizard_chart_update.py b/account_chart_update/wizard/wizard_chart_update.py index 2913d307218..6a960ae7c1d 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -528,7 +528,10 @@ def find_repartition_by_templates( tags += tpl.tag_ids existing = self.env["account.tax.repartition.line"] existing_candidates = current_repartition.filtered( - lambda r: r.factor_percent == factor_percent + lambda r, + factor_percent, + repartition_type, + existing_ids: r.factor_percent == factor_percent and r.repartition_type == repartition_type and r.id not in existing_ids ) @@ -1524,7 +1527,7 @@ class WizardTaxMatching(models.TransientModel): _inherit = "wizard.matching" def _get_matching_selection(self): - vals = super(WizardTaxMatching, self)._get_matching_selection() + vals = super()._get_matching_selection() vals += self._selection_from_files( "account.tax.template", ["description", "name"] ) @@ -1537,7 +1540,7 @@ class WizardAccountMatching(models.TransientModel): _inherit = "wizard.matching" def _get_matching_selection(self): - vals = super(WizardAccountMatching, self)._get_matching_selection() + vals = super()._get_matching_selection() vals += self._selection_from_files("account.account.template", ["code", "name"]) return vals @@ -1548,7 +1551,7 @@ class WizardFpMatching(models.TransientModel): _inherit = "wizard.matching" def _get_matching_selection(self): - vals = super(WizardFpMatching, self)._get_matching_selection() + vals = super()._get_matching_selection() vals += self._selection_from_files("account.fiscal.position.template", ["name"]) return vals