mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_chart_update: Write Chart Template on Company only when changes
This commit is contained in:
@@ -433,7 +433,8 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
|||||||
self._update_taxes_pending_for_accounts(todo_dict)
|
self._update_taxes_pending_for_accounts(todo_dict)
|
||||||
if self.update_fiscal_position and perform_rest:
|
if self.update_fiscal_position and perform_rest:
|
||||||
self._update_fiscal_positions()
|
self._update_fiscal_positions()
|
||||||
# Store new chart in the company
|
# 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
|
self.company_id.chart_template_id = self.chart_template_id
|
||||||
_logger.removeHandler(handler)
|
_logger.removeHandler(handler)
|
||||||
self.log = log_output.getvalue()
|
self.log = log_output.getvalue()
|
||||||
|
|||||||
Reference in New Issue
Block a user