Skip to content

Commit

Permalink
Merge PR #1294 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by max3903
  • Loading branch information
OCA-git-bot committed Jan 3, 2025
2 parents 97b6f0f + d06dfb2 commit f92ffa9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fieldservice_isp_account/models/fsm_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ def _compute_contractor_cost(self):
for cost in order.contractor_cost_ids:
order.contractor_total += cost.price_unit * cost.quantity

@api.onchange("project_id")
def onchange_project_id(self):
for order in self:
for timesheet in order.employee_timesheet_ids:
timesheet.project_id = order.project_id

def action_complete(self):
for order in self:
order.account_stage = "review"
Expand Down

0 comments on commit f92ffa9

Please sign in to comment.