Added changelog

This commit is contained in:
Vincent Schippefilt
2022-09-20 15:19:37 +02:00
parent c4fda89c5c
commit e9a8e1790e

View File

@@ -4,6 +4,49 @@
Changelog
=========
Odoo version 16.0
=================
- The change with static XML into bundle asset impacting all modules has just been merged.
https://github.com/odoo/odoo/commit/f05adbc8b59c67cbec4847687a1ee07e620c2a7a
Assets declared in "__manifest__.py" can now contain static xml files (for owl & qweb templates).
The "web.assets_qweb" bundle including almost all the static xml and the widget attributes `xmlDependencies` have been removed.
The file `@web/core/assets.js` now contains more general asset utility functions (loadJS, loadCSS, getBundle, loadBundle).
Legacy file `ajax.js` is deprecated and will be removed and should not be used anymore.
When a bundle is lazy loaded (from loadBundle), it is considered to be loaded when the JS, CSS and XML templates are loaded.
Example:
Version before:
.. code-block:: python
'web.assets_qweb': [
'module_name/static/src/folder/template.xml',
],
'web.assets_backend': [
'module_name/static/src/folder/component.js',
'module_name/static/src/folder/*.scss',
],
+ xmlDependencies: ['/module_name/static/folder/template2.xml'],
+ await ajax.loadXML('/module_name/static/folder/template3.xml', qweb);
Is now:
.. code-block:: python
'web.assets_backend': [
'module_name/static/src/folder/component.js',
'module_name/static/src/folder/*.scss',
'module_name/static/src/folder/*.xml',
],
or simplify into:
.. code-block:: python
'web.assets_backend': [
'module_name/static/src/folder/*',
],
Odoo Online version 15.4
========================