Tuesday, October 8, 2024
1 change · 18.0
Code cleanup and technical improvements
Restaurant point-of-sale order transfers were streamlined by removing a hidden shared state that made the process harder to maintain. This reduces the chance of transfer-related issues and makes future improvements safer, with little direct change for everyday users.
Original PR description
Backport of https://github.com/odoo/odoo/pull/179363 In pos restaurant when doing a transfer we set the order to transfer in a key of `pos` and then whenever we have a click handler we have to check if there is an order to transfer or not and adapt the code accordingly. This is inconvenient and error prone. In this commit we adapt the code such that we no longer need to store this global state and that the transfering logic is handled in a sequential way. task: 4167376 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr