Wednesday, May 22, 2024
2 changes · saas-17.1
Resolved issues and error corrections
Kiosk self-ordering now shows an order number even when the total price is 0.00. This prevents customers ordering free items from being sent back to the start screen without the reference they need to collect or track their order.
Original PR description
Problem: In kiosk, when a person has a command with a price of 0.00, he doesn't have an order number Steps to reproduce: - Install "Point of Sale" app - In POS settings, create a kiosk shop and set "Self Ordering" to "Kiosk" - Go to product and set a price of 0.00 to a product - Open the kiosk session and order the product with the price of 0.00 - Click on "Pay" and you'll be back to the reception page without having your order number opw-3877596 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Users can no longer enter negative costs on products or purchase order lines. This prevents incorrect inventory valuation and avoids accounting inconsistencies caused by invalid cost values.
Original PR description
The user should not be able to set a negative cost. Else, it will lead to unexpected behaviors and inconsistencies in stock valuations. The commit adds an onchange because adding a constraint in stable would be too risky. OPW-3619709