Skip to content

Commit

Permalink
Merge pull request #429 from ecosoft-odoo/15.0-fix-budget_control_pur…
Browse files Browse the repository at this point in the history
…chase-check_precommit

[FIX] error no variable
  • Loading branch information
Saran440 authored Apr 26, 2024
2 parents 9e531e0 + c1710f5 commit 4f6ec23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions budget_control/models/budget_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def check_budget_precommit(self, doclines, doc_type="account"):
if not doclines:
return
doclines = doclines.sudo()
budget_moves_uncommit = False
# Allow precommit budget with related origin document (PO)
if doc_type == "account":
budget_moves_uncommit = doclines.with_context(
Expand Down

0 comments on commit 4f6ec23

Please sign in to comment.