5956786c346b63c92a191b008812376cb88e9cb6
To reproduce ============ - Go to shop - in edit mode select a product - add a ribbon or modify it - save -> ribbon is not saved Problem ======= When changing the ribbon, there is no editable item that is marked dirty, because the ribbon doesn't have a savable parent. Solution ======== Flag the ribbon as dirty manually to trigger saving process Note: the reason why this is needed in 16.0 and not before is [1]. Before that we did not check for the presence of the dirty flag (the "o_dirty" class) to determine if the page has to be saved. All of this has to be reviewed in the future, as explained by [2] and its following commits. Note that commits like [2] is probably the cause of ribbon not being savable anymore: parts of the DOM stopped being flagged with o_dirty by mistake... so the saving process was not triggered "by mistake" anymore. At the time of [1] for example: just clicking on a product image (to maybe then add a ribbon) was enough for it to be marked with the "o_dirty" class by mistake. This was probably solved later... creating the bug being solved here. [1]: https://github.com/odoo/odoo/commit/650a97d1bd59254cc2115d54d58940b6112a8d70 [2]: https://github.com/odoo/odoo/commit/e8a86b860dcba5b7782fc26c4290eee48d9fcdee opw-3674520 closes odoo/odoo#153298 X-original-commit: 34876a321ac491c1bede1e36d0cca6248af2a86c Signed-off-by: Quentin Smetz (qsm) <qsm@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%