438a87e97f3675667cfef78885c4b42f3d060fdf
NOTE that this is also a refactor. When an order has a fiscal position, deleting it from the ui is impossible unless it's deleted from the localStorage. To reproduce: - Make an order with fiscal position - Validate the order, and in receipt screen, click next order. - This will remove the paid order from `pos`. - [BUG] Refresh the page the product screen will focus on that order. - This is because the order is kept in the localStorage. Why? `save_to_db` is dependent on `pos.selectedOrder` when there is a fiscal position in the order. How come? This is because when computing tax mapping, it's using the `selectedOrder`. And `save_to_db` is triggered because when deleting an order `selectedOrder` is set to a order. The proposed change removes this dependency of an order to the `pos.selectedOrder` and it fixes the issue. closes odoo/odoo#96090 Related: odoo/enterprise#29525 Signed-off-by: Masereel Pierre <pim@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%