Skip to content

Commit

Permalink
Merge pull request #401 from ecosoft-odoo/14.0-fix-consumed_plan
Browse files Browse the repository at this point in the history
[14.0][FIX] add context edit_amount in consumed plan
  • Loading branch information
TheerayutEncoder authored May 26, 2023
2 parents 2dd7cd0 + fcaf1f2 commit 07e6b12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions budget_control_consumed_plan/models/budget_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def _get_last_date_period(self):
return date_to

def update_consumed_plan(self, date=False):
self = self.with_context(edit_amount=1)
if not date:
date = self._get_last_date_period()
for rec in self:
Expand Down

0 comments on commit 07e6b12

Please sign in to comment.