Skip to content

Commit

Permalink
[16.0][FIX] fieldservice_isp_account: project_id in timesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
are-agilebg committed Dec 23, 2024
1 parent 0d32643 commit d06dfb2
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

Check warning on line 72 in fieldservice_isp_account/models/fsm_order.py

View check run for this annotation

Codecov / codecov/patch

fieldservice_isp_account/models/fsm_order.py#L72

Added line #L72 was not covered by tests

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

0 comments on commit d06dfb2

Please sign in to comment.