Daily updates from Odoo
Wednesday, July 17, 2024
1 change · master
Resolved issues and error corrections
Fixed an issue in restaurant Point of Sale preparation displays where adding an internal note to a newly added item could incorrectly apply that note to an earlier identical item already sent for preparation. The system now keeps those lines distinct, ensuring kitchen staff see the right note on the right item.
Original PR description
If you already ordered product A and add another product A with an internal note. The internal note would end up on both product A. The correct behavior would be to have the internal note on only one…
If you already ordered product A and add another product A with an internal note. The internal note would end up on both product A. The correct behavior would be to have the internal note on only one of them. Steps to reproduce: ------------------- * Setup a PoS restaurant and a preparation display * Open PoS session * Add 1 product A to the order and send it to preparation * Add 1 product A, and add an internal note on it * Send it to preparation > Observation: On the preparation display both product will have the internal note Why the fix: ------------ To fix the issue, when adding an internal note we only add it on the product that hasn't been sent in preparation and split the order line in 2 if necessary. We also take the order line uuid in account when processing the orders in the preparation display to differentiate the line correctly. The behavior should be the following: - If you add a note on a line that has no quantity sent in preparation the note will be on all the quantity - If you add a note on a line that has all quantity sent in preparation the note will be on all the quantity - If you add a note on a line that has a part of the quantity sent in preparation the note will be on the quantity not sent, and the line will be split in 2. One line with already sent, and one with the rest. opw-4000386