Skip to content
Snippets Groups Projects
Commit 8cc06617 authored by Julien Mougenot's avatar Julien Mougenot
Browse files

[IMP] *: Improve assets management


This commit changes the way assets are declared in Odoo modules.

Before: assets were declared in template files. Template bundles were
generated from primary templates, so technically any qweb template could
have been called as an asset bundle, with the 't-call-assets' directive.

Being standard qweb templates, they had access to standard HTML tags
(script, link, with or without raw scripts or style definition), qweb
directives (t-call, t-raw, etc.) and could be inherited by other
templates.

Now: assets are defined in the module's manifest and generated by the
't-call-assets' directive.

More information on the new system can be found on the updated user
documentation (see the "JavaScript Reference" section).

Task: 2352566

Co-authored-by: default avatarBruno Boi <boi@odoo.com>
Co-authored-by: default avatarJulien Mougenot <jum@odoo.com>
Co-authored-by: default avatarLucas Perais <lpe@odoo.com>
Co-authored-by: default avatarMathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: default avatarRaphael Collet <rco@odoo.com>
Co-authored-by: default avatarSimon Genin <ges@odoo.com>
parent ee412d21
No related branches found
No related tags found
No related merge requests found
Showing
with 331 additions and 300 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment