Skip to content

Commit

Permalink
[FIX] budget_allocation: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Jul 9, 2024
1 parent 51ce5d3 commit cc01ba3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions budget_allocation/models/budget_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ class BudgetPeriod(models.Model):

def _get_where_domain(self, analytic_id, template_lines):
if template_lines._name == "budget.allocation.line":
unique_fuund_ids = template_lines.mapped("fund_id")
if len(unique_fuund_ids) > 1:
fund_domain = "in {}".format(tuple(unique_fuund_ids.ids))
unique_fund_ids = template_lines.mapped("fund_id")
if len(unique_fund_ids) > 1:
fund_domain = "in {}".format(tuple(unique_fund_ids.ids))
else:
fund_domain = "= {}".format(unique_fuund_ids.id)
fund_domain = "= {}".format(unique_fund_ids.id)
return "analytic_account_id = {} and fund_id {}".format(
analytic_id, fund_domain
)
Expand Down

0 comments on commit cc01ba3

Please sign in to comment.