Wednesday, January 20, 2021
1 change · master
Enhancements to existing features
This update streamlines how Helpdesk, Field Service, and project timesheets connect to sales and invoicing. It removes redundant ticket actions and fields, improves automatic sales order line selection, and makes reported ticket hours more accurate across user permissions.
Original PR description
Purpose ====== This PR is in continuity of #15025 and #15264 done in 14.0. The goal of this PR essentially updates and improves the changes done in 14.0. ## Details - Remove 'create sale order'…
Purpose
======
This PR is in continuity of #15025 and #15264 done in 14.0.
The goal of this PR essentially updates and improves the changes done in 14.0.
## Details
- Remove 'create sale order' button in helpdesk.ticket.
- Changes the project field in related and stored field and remove task field in helpdesk.ticket model. Because
- we don't need to link a ticket to a task to sale timesheets in ticket.
- the project is always the project defined in the helpdesk.team linked to helpdesk.ticket. That's why this field is now a related and stored field.
- Store sale_line_id field in ticket.
- Merge helpdesk_sale_timesheet_edit module in helpdesk_sale_timesheet module.
- Update the search to get the last SOL of customer set in the helpdesk.ticket.
- compute sudo and store total_hours_spent field in helpdesk.ticket to get the total of all timesheets contained in the ticket.
- Remove bill_type field, because this field has been merged with the pricing_type field in sale_timesheet module.
- Add constraint to check if a timesheet is not linked to a task and a ticket at the same time.
- Restrict the pricing type of helpdesk projects to task rate only.
- Create helpdesk_fsm_sale module to make the bridge between the helpdesk_sale_timesheet and industry_fsm_sale.
- Remove the SO set in the project if this project has been changed to fsm project.
- Move and update the constraint for timesheet_product_id from sale_timesheet to industry_fsm_sale because this field is only required for fsm projects.
- Hide planned_hours, forecast_hours and effective_hours fields in planning.slot form view.
- Remove deprecated code.
Related PRs:
- Community: odoo/odoo#64474
- Upgrade: odoo/upgrade#2080
Task-2424382