Skip to content

Commit

Permalink
[FIX] account_chart_update: Write Chart Template on Company only when…
Browse files Browse the repository at this point in the history
… changes
  • Loading branch information
Shide committed Nov 27, 2024
1 parent 7ab7622 commit 5e93455
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions account_chart_update/wizard/wizard_chart_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,9 @@ def action_update_records(self):
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

Check warning on line 438 in account_chart_update/wizard/wizard_chart_update.py

View check run for this annotation

Codecov / codecov/patch

account_chart_update/wizard/wizard_chart_update.py#L438

Added line #L438 was not covered by tests
_logger.removeHandler(handler)
self.log = log_output.getvalue()
# Check if errors where detected and wether we should stop.
Expand Down

0 comments on commit 5e93455

Please sign in to comment.