Skip to content

Commit

Permalink
[FIX] budget_control_purchase_request: force amount_currency
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Jan 28, 2025
1 parent 95403b8 commit 1a2faec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion budget_control_purchase_request/models/purchase_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def _get_pr_line_account(self):

def _init_docline_budget_vals(self, budget_vals):
self.ensure_one()
budget_vals["amount_currency"] = self.estimated_cost
if not budget_vals.get("amount_currency", False):
budget_vals["amount_currency"] = self.estimated_cost
# Document specific vals
budget_vals.update(
{
Expand Down

0 comments on commit 1a2faec

Please sign in to comment.