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>
24 lines
844 B
XML
24 lines
844 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_card" name="Card">
|
|
<div class="s_card card bg-white w-100">
|
|
<h4 class="card-header">Feature Title</h4>
|
|
<div class="card-body">
|
|
<p class="card-text">A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.</p>
|
|
</div>
|
|
<div class="card-footer">
|
|
<i class="fa fa-1x fa-clock-o mr8"/><small>2 days ago</small>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<record id="website.s_card_000_scss" model="ir.asset">
|
|
<field name="name">Card 000 SCSS</field>
|
|
<field name="bundle">web.assets_frontend</field>
|
|
<field name="path">website/static/src/snippets/s_card/000.scss</field>
|
|
</record>
|
|
|
|
|
|
</odoo>
|