@@ -208,6 +208,8 @@ data files provide shorter alternatives to defining them using
208208
209209Defines an ``ir.ui.menu `` record with a number of defaults and fallbacks:
210210
211+ .. rst-class :: o-definition-list
212+
211213``parent ``
212214 * If a ``parent `` attribute is set, it should be the :term: `external id `
213215 of an other menu item, used as the new item's parent
@@ -239,6 +241,8 @@ Defines an ``ir.ui.menu`` record with a number of defaults and fallbacks:
239241Creates a :ref: `QWeb view <reference/view_architectures/qweb >` requiring only the ``arch ``
240242section of the view, and allowing a few *optional * attributes:
241243
244+ .. rst-class :: o-definition-list
245+
242246``id ``
243247 the view's :term: `external identifier `
244248``name ``, ``inherit_id ``, ``priority ``
@@ -249,13 +253,60 @@ section of the view, and allowing a few *optional* attributes:
249253 as a primary
250254``groups ``
251255 comma-separated list of group :term: `external identifiers `
252- ``page ``
253- if set to ``"True" ``, the template is a website page (linkable to,
254- deletable)
255- ``optional ``
256- ``enabled `` or ``disabled ``, whether the view can be disabled (in the
257- website interface) and its default status. If unset, the view is always
258- enabled.
256+ ``active ``
257+ indicates whether the view is active. If inactive, its XPath rules won’t be
258+ applied, which is thus mainly relevant for views with ``inherit_id ``
259+
260+ .. note ::
261+
262+ Defining the ``active `` value on the ``<template> `` node itself comes with a
263+ subtlety: it is only considered when creating the record. On subsequent
264+ updates, the view will be updated but not its ``active `` status.
265+
266+ .. _reference/data/asset :
267+
268+ ``asset ``
269+ ---------
270+
271+ Creates an :ref: `asset <frontend/assets/ir_asset >`.
272+
273+ .. example ::
274+ .. code-block :: xml
275+
276+ <asset id =" website_something.some_style_asset" name =" Some style asset" active =" False" >
277+ <bundle >web.assets_frontend</bundle >
278+ <path >website_something/static/src/some_style.scss</path >
279+ </asset >
280+
281+ **Attributes **
282+
283+ .. rst-class :: o-definition-list
284+
285+ ``id ``
286+ the asset's :term: `external identifier `
287+ ``name ``
288+ same as the corresponding field on ``ir.asset ``
289+ ``active `` (optional)
290+ indicates whether the asset is active
291+
292+ .. note ::
293+
294+ Same as ``<template> ``, defining the ``active `` value on the ``<asset> ``
295+ node itself comes with a subtlety: it is only considered when creating the
296+ record. On subsequent updates, the asset will be updated but not its
297+ ``active `` status.
298+
299+ **Child elements **
300+
301+ .. rst-class :: o-definition-list
302+
303+ ``<bundle> `` and ``<path> ``
304+ required to define the corresponding fields on ``ir.asset `` (the
305+ ``directive `` field can be controlled using the ``directive `` attribute on
306+ the ``<bundle> `` child)
307+
308+ ``<field> `` (optional)
309+ just like in a normal ``<record> ``, to define more field values as needed
259310
260311.. _reference/data/csvdatafiles :
261312
0 commit comments