Merge PR #1978 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-12-03 14:57:38 +00:00

View File

@@ -433,8 +433,9 @@ class WizardUpdateChartsAccounts(models.TransientModel):
self._update_taxes_pending_for_accounts(todo_dict)
if self.update_fiscal_position and perform_rest:
self._update_fiscal_positions()
# Store new chart in the company
self.company_id.chart_template_id = self.chart_template_id
# Store new chart in the company if has been changed
if self.company_id.chart_template_id != self.chart_template_id:
self.company_id.chart_template_id = self.chart_template_id
_logger.removeHandler(handler)
self.log = log_output.getvalue()
# Check if errors where detected and wether we should stop.