Skip to content

Commit bce8812

Browse files
authored
Merge pull request #538 from ecosoft-odoo/15.0-fix-budget_allocation_report_get_budget
[FIX] budget allocation: get budget only period
2 parents 4c1967b + 098b030 commit bce8812

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

budget_allocation/report/budget_source_fund_report.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ def _from_budget(self):
169169
"""
170170

171171
def _where_budget(self):
172-
return "where sf.active is true and ba.active is true and bc.active is true"
172+
return (
173+
"where sf.active is true and ba.active is true and bc.active is true "
174+
"and ba.budget_period_id = bp.id"
175+
)
173176

174177
def _select_statement(self, amount_type):
175178
return self._get_select_amount_types()[amount_type]

0 commit comments

Comments
 (0)