Daily updates from Odoo
Wednesday, August 16, 2023
2 changes · master
Resolved issues and error corrections
This fixes display issues in the appointment booking flow after an underlying template technology change. Users should see appointment slot pages render reliably instead of missing content or errors.
Original PR description
Following the removal of qweb in favor of owl at: odoo/odoo@6303a3eacdca012649a2ffda627b65c17a7217f1 There were a few issues with the templates: - 'JSON' is no longer in the rendering context of the templates - 'renderToElement' only returns the first 'root' element of the template, which is not suitable for some cases (replaced with 'renderToFragment') - correctly 'return' before trying to render a template that contains a foreach on an undefined variable (qweb did not mind, OWL is throwing an error) Task-3465533
Field Service product handling now uses the technician's preferred warehouse more reliably and confirms sales orders when products are added, so stock movements are created correctly. The update also fixes quantity, serial/lot tracking, messaging, and access-right issues, reducing errors during field service workflows.
Original PR description
This PR purpose is to address several Field Service Bugs among which: - correctly compute serial_missing - use user's default warehouse - prevent Error when setting product_uom_qty=qty_delivered (due to using stock.move.line in order to set default warehouse) - revert setting the assignee as SO sales rep - prevent unwanted message posts - handle preventing message post in right def - industry_fsm_stock: confirm so when adding products - add ensure_one on `fsm.stock.tracking` This PR also adds tests in order to ensure that the related bug fixes are tested. task-2714003