8603d13d1961e0146df19aad65936c84eb6071ac
Previously, the useAssets hook would load the templates from the given bundles into the qweb instance that was in the environment. In owl 2, qweb is no longer in the environment, and templates need to be loaded in the app. This commit fixes that by exporting a function to load templates in the main app from assets.js, when the main app is created, it should be written on the function in a similar vein to renderToString, so that all further calls to the function will load the templates in that app. This commit also adds an actual lazy-loading test in the test_assetsbundle module, as we don't want to pollute the manifest of web with bundles that only exist for one specific test. closes odoo/odoo#90122 Related: odoo/enterprise#26776 Signed-off-by: Aaron Bohy (aab) <aab@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%