Wednesday, January 20, 2021
2 changes · master
Enhancements to existing features
This update streamlines how projects, timesheets, sales orders, and invoices work together in Odoo’s service apps. It removes outdated screens and buttons, improves portal timesheet search, and makes billing-related project data more reliable and faster to use.
Original PR description
Purpose ======= This PR is in continuity of #62360 and #62900 done in 14.0. The goal of this PR essentially updates and improves the changes done in 14.0. ## Details - Remove the context key added in…
Purpose
=======
This PR is in continuity of #62360 and #62900 done in 14.0.
The goal of this PR essentially updates and improves the changes done in 14.0.
## Details
- Remove the context key added in 14.0 to keep the 'Create Sale Order' button in task and helpdesk.ticket. Because at the end we remove this button in these models.
- Remove non_allow_billable field in tasks and timesheets.
- Remove the partner_email from task form view.
- Remove timesheet_product_id from task form view
- Merge sale_timesheet_edit module with sale_timesheet module.
- Remove timesheet table in portal sales order and invoice (deprecated templates in #62900).
- Remove override of project kanban controller (deprecated file from #62360).
- Store remaining_hours field in sale.order.line model (this field has been introduced in the following PR #62900).
- Remove _onchange_task_id_employee_id, the process in the method is done in _compute_so_line.
- Merge bill_type and pricing_type in project.project.
- Move partner_id field in project form view.
- Remove value selected in SO and SOL in project if the customer does not fit with the SO selected.
- Changes SOL in mapping when the pricing type of the current project is "employee rate" if the customer changes.
- Hide the timesheet_product_id field if the project is not a fsm project.
- Move sql constraint for timesheet_product_id in industry_fsm_sale, because this field is no longer mandatory in project which is not fsm project.
- Changes the search of timesheets in portal > timesheets.
- we allows the user to search with name of SO and invoice to find the timesheets about the wanted SO or invoice rathan than the id of SOL and invoice.
- Move View Timesheets button in portal > invoice
- Remove deprecated codes.
- Miscellaneous fixes.
Task-2424382
Co-authored-by: Laurent Stukkens (LTU) <ltu@odoo.com>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