2eccc4366971b661a5031ee035aadbba8722ae26
Commit [1] introduced a cron that disables outdated js and scss snippets assets. For example, if a new version of the masonry snippet is defined with new assets: data-vcss="001" and data-vjs="001", the previous assets have to be disabled (000.scss and 000.js). That cron was not handling the scss variables files at all, so when an outdated snippet was still used in the db and the cron was run, the 000.scss file was activated, but not the 000_variables.scss and it was crashing the assets. Now, the XXX_variables.scss assets files are handled alongside the XXX.scss files. Also, the regex used in the _is_snippet_used method was only returning the first match of a snippet in an html field. So if a view had a snippet up to date and then an outdated snippet of the same type, the old assets were not activated. The 'g' flag was added to return all the occurences of the snippet in an html field. [1]: https://github.com/odoo/odoo/commit/fa1c05e7bb2959c6025a806a4348f69ed225b4ec task-2775188 closes odoo/odoo#85360 X-original-commit: 644067e80d4ca3f41707cddd15ed8f2807a1e410 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%