Skip to content

Commit

Permalink
project_budget_subcontractor: fix budget_date
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Nov 6, 2024
1 parent 25639be commit 451f127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project_budget_subcontractor/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class AccountMove(models.Model):
)
use_budget = fields.Boolean(related="partner_id.use_budget")

@api.depends("invoice_date")
@api.depends("date")
def _compute_budget_date(self):
for move in self:
if not move.budget_date:
move.budget_date = move.invoice_date
move.budget_date = move.date

def _post(self, soft=True):
for move in self:
Expand Down

0 comments on commit 451f127

Please sign in to comment.