Wednesday, October 25, 2023
2 changes · master
Code cleanup and technical improvements
This update aligns the Barcode inventory picking flow with recent stock quantity changes, preserving the familiar picking behavior for warehouse operators. It also updates related delivery, helpdesk, repair, and field service stock processes so they continue working with the new inventory structure.
Original PR description
Follow the refactor of the picking. Since the `stock.move.line` has now only one quantity field, here is the idea to keep the (almost) same behavior in the Barcode App than before the refactor: - Have a non-stored field `qty_done`: equals to 0 if not picked, equals to the `quantity` field otherwise. When the user writes on it, it will write on the `quantity` field and marks the line as picked; - As `reserved_uom_qty` doesn't exist anymore, we make it equals to `quantity` at the creation of the line in the Barcode App to be able to know the line's reservation. That means once the operation is closed, this info is lost. COM PR: odoo/odoo#137864 task: fp-request
Rental sales now includes the useful scheduling code that was previously kept in a separate module, reducing internal complexity. This keeps rental pricing and recurring rental behavior available while removing an unused dependency, with no major business process change expected.
Original PR description
Since sale_subscription does not inherit anymore from sale_temporal (https://github.com/odoo/enterprise/pull/46621), the latter became useless. This PR moves the useful code from sale_temporal to sale_renting, and drops sale_temporal. task-3527947 See also: - https://github.com/odoo/upgrade/pull/5265