Skip to content

Commit

Permalink
[FIX] split amount if multi analytic
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Jul 30, 2024
1 parent 4f1d149 commit d941664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions budget_control/models/base_budget_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ def commit_budget(self, reverse=False, **vals):
if not budget_vals["amount_currency"]:
return False

Check warning on line 534 in budget_control/models/base_budget_move.py

View check run for this annotation

Codecov / codecov/patch

budget_control/models/base_budget_move.py#L534

Added line #L534 was not covered by tests
budget_commit_vals.append(budget_vals.copy())
# Clear old values for case multi analytics
del budget_vals["amount_currency"]
budget_move = self.env[self._budget_model()].create(budget_commit_vals)
# Update Template Line
budget_move = self._update_template_line(budget_move)
Expand Down

0 comments on commit d941664

Please sign in to comment.