Friday, April 18, 2025
1 change · master
Code cleanup and technical improvements
The preparation display used by Point of Sale has been moved into the enterprise POS module and its internal orderline status tracking has been redesigned. This keeps the feature aligned with enterprise POS installations, simplifies unused components, and should make preparation display behavior easier to maintain going forward.
Original PR description
- The pos_preparation_display has been moved to pos_enterprise since it is installed if point_of_sale is installed in an enterprise environement. - The preparation order_stage model is rename in pos_prep_state and is now specific to an preparation orderline and not order anymore. The done field is now infer by checking if the state is in the last stage and todo false. The todo field has been moved to the state model since it is different per orderline per preparation display. - Related models is now introduced in the preparation display. - The logic in the preparation display front end is mainly done using the states of the preparation orderlines. - pos_hr_preparation_display has been removed since it's not used anymore. Related: odoo/odoo#201170