From 87003e214eca7aafa3bf322cf2623afcbfd98716 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 7 Feb 2019 16:32:01 +0000 Subject: [DOC] batch of UI, Https, linter corrections --- doc/reference/data.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/reference/data.rst') diff --git a/doc/reference/data.rst b/doc/reference/data.rst index 2165a490dd0..2f13b6cf961 100644 --- a/doc/reference/data.rst +++ b/doc/reference/data.rst @@ -154,6 +154,8 @@ values). .. ignored assert +.. _reference/data/shortcuts: + Shortcuts ========= @@ -263,5 +265,5 @@ For each row (record): * the third column is the ``name`` field for ``res.country.state`` * the fourth column is the ``code`` field for ``res.country.state`` -.. _base64: http://tools.ietf.org/html/rfc3548.html#section-3 -.. _csv: http://en.wikipedia.org/wiki/Comma-separated_values +.. _base64: https://tools.ietf.org/html/rfc3548.html#section-3 +.. _csv: https://en.wikipedia.org/wiki/Comma-separated_values -- cgit v1.2.3 From ffc69127f8f91e79a1263a0ab5685e67d93d569a Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Fri, 19 Apr 2019 11:49:36 +0000 Subject: [DOC] Data files : noupdate information + examples Solves #26818 --- doc/reference/data.rst | 49 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 4 deletions(-) (limited to 'doc/reference/data.rst') diff --git a/doc/reference/data.rst b/doc/reference/data.rst index 2f13b6cf961..416121b8255 100644 --- a/doc/reference/data.rst +++ b/doc/reference/data.rst @@ -22,6 +22,7 @@ of an XML data file is the following: .. code-block:: xml + ... @@ -30,6 +31,25 @@ of an XML data file is the following: Data files are executed sequentially, operations can only refer to the result of operations defined previously +.. note:: + + If the content of the data file is expected to be applied only once, you + can specify the odoo flag ``noupdate`` set to 1. If part of + the data in the file is expected to be applied once, you can place this part + of the file in a domain. + + .. code-block:: xml + + + + + + + + + + + Core operations =============== @@ -152,6 +172,27 @@ Parameters can be provided using ``eval`` (should evaluate to a sequence of parameters to call the method with) or ``value`` elements (see ``list`` values). +.. code-block:: xml + + + + + Odude + + + + + + + + + + + + + + .. ignored assert .. _reference/data/shortcuts: @@ -168,7 +209,7 @@ data files provide shorter alternatives to defining them using Defines an ``ir.ui.menu`` record with a number of defaults and fallbacks: -Parent menu +``parent`` * If a ``parent`` attribute is set, it should be the :term:`external id` of an other menu item, used as the new item's parent * If no ``parent`` is provided, tries to interpret the ``name`` attribute @@ -177,10 +218,10 @@ Parent menu created * Otherwise the menu is defined as a "top-level" menu item (*not* a menu with no parent) -Menu name +``name`` If no ``name`` attribute is specified, tries to get the menu name from a linked action if any. Otherwise uses the record's ``id`` -Groups +``groups`` A ``groups`` attribute is interpreted as a comma-separated sequence of :term:`external identifiers` for ``res.groups`` models. If an :term:`external identifier` is prefixed with a minus (``-``), the group @@ -220,7 +261,7 @@ section of the view, and allowing a few *optional* attributes: ``report`` ---------- -Creates a ``ir.actions.report`` record with a few default values. +Creates a :ref:`IrActionsReport ` record with a few default values. Mostly just proxies attributes to the corresponding fields on ``ir.actions.report``, but also automatically creates the item in the -- cgit v1.2.3