Files
odoo_source/addons/website/data/ir_asset.xml
T
Julien Mougenot 3e3dce0eb8 [REF] *: rename assets 'glob' to 'path'
Rationale:
The majority of cases where an ir.asset is manually declared
outside of manifest files is to specifically add a single asset file.
This means developers are specifying a single asset *path*, and not a
glob expression. In this context, it seems better to name the filepath
field `path`, and document that it can be specified with a glob
expression when (seldom) needed, rather than making the exception appear
to be the norm - possibly puzzling many developers (What's a glob and
why do I need one?)

The doc is updated as well, and some spell-checking and wording
improvements were done too.

This required some adaptations to the existing `ir.asset` declarations:
- odoo/enterprise#17465
- odoo/design-themes#459

closes odoo/odoo#68695

Related: odoo/upgrade#2348
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2021-04-07 20:39:10 +00:00

36 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="website.user_custom_bootstrap_overridden_scss" model="ir.asset">
<field name="name">User custom bootstrap overridden SCSS</field>
<field name="bundle">web._assets_frontend_helpers</field>
<field name="directive">prepend</field>
<field name="path">website/static/src/scss/user_custom_bootstrap_overridden.scss</field>
<field name="sequence" eval="99"/>
</record>
<record id="website.user_custom_rules_scss" model="ir.asset">
<field name="name">User custom rules SCSS</field>
<field name="bundle">web.assets_frontend</field>
<field name="path">website/static/src/scss/user_custom_rules.scss</field>
<field name="sequence" eval="99"/>
</record>
<record id="website.bs3_for_12_0_scss" model="ir.asset">
<field name="name">Bs3 for 12 0 SCSS</field>
<field name="bundle">web.assets_frontend</field>
<field name="path">website/static/src/scss/compatibility/bs3_for_12_0.scss</field>
<field name="active" eval="False"/>
</record>
<record id="website.configurator_tour" model="ir.asset">
<field name="name">website.configurator_tour</field>
<field name="bundle">website.assets_editor</field>
<field name="path">website/static/src/js/tours/configurator_tour.js</field>
<field name="active" eval="False"/>
</record>
</data>
</odoo>