Friday, October 11, 2024
2 changes · saas-17.2
Resolved issues and error corrections
Fixed an issue where field service users could not select the relevant sale order item on a task timesheet after changing the task customer to a related sub-contact. This ensures sale order items linked to a company or its child contacts remain available, reducing billing and timesheet entry friction.
Original PR description
Steps: - Create a contact with two sub-contacts: Sub1 and Sub2. - Create a service product that generates a project upon order. - Create a quotation for Sub1 with the created product and confirm it. - Go to the created project and create a task. - Edit the task and change the customer to Sub2. - Add a line in the timesheet tab. - Click on the dropdown of the sale order item. Issue: - The sale order item does not appear in the dropdown list. Cause: - Incorrect domain on sale order items in timesheets in the project task. Solution: - Correct the domain to link project task timesheets to any sale order related to the company or its children. task-4081462
This fixes the timesheet sale order item selector on project tasks so it includes orders linked to a company and its child contacts. Users can now correctly choose the relevant sale order item when a task customer is changed between related contacts.
Original PR description
Steps: - Create a contact with two sub-contacts: Sub1 and Sub2. - Create a service product that generates a project upon order. - Create a quotation for Sub1 with the created product and confirm it. - Go to the created project and create a task. - Edit the task and change the customer to Sub2. - Add a line in timesheet tab - Click on the dropdown of the sale order item. Issue: - The sale order item does not appear in the dropdown list. Cause: - The domain on `sale_line` is incorrect in the timesheet tab in the project task. Solution: - Correct the domain to link project timesheets to any sale order related to the company or its children. task-4081462 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr