a04adfac938eb4c73dcf1acf26f8d497cfd9f84b
This commit resolves 2 bugs. The first one is that, in a PoS without pos_restaurant installed, if we delete the last order of the list, we get a traceback. This is resolved by adding an empty order if there is no order left in the order list. task-id: task-id: 3291831 The second bug is that, with pos_restaurant installed, when going to a retail PoS, if we createan order with some products, then create a new order from the TicketScreen, add some products, go the the TicketScreen and delete the current order and then click back, we have in the ProductScreen the order that is supposed to be deleted. This order doesn't show up in the ticket screen anymore. This comes from the fact that the _selectNextOrder function is not correctly implemented, leading to the next order not being chosen because we do not have a table (we are in classic PoS). This fix resolves this problem by changing the _selectNextOrder function and the newly added addOrderIfEmpty function in models.js. closes odoo/odoo#122269 Task-id: 3291821 X-original-commit: cd956daf21695bef4753301fe29a6ece1e97d32a Signed-off-by: Monnom David (moda) <moda@odoo.com> Signed-off-by: Guilliams Adrien (adgu) <adgu@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%