diff --git a/content/developer/howtos/rdtraining/12_sprinkles.rst b/content/developer/howtos/rdtraining/12_sprinkles.rst
index 25294bb87..511d68b73 100644
--- a/content/developer/howtos/rdtraining/12_sprinkles.rst
+++ b/content/developer/howtos/rdtraining/12_sprinkles.rst
@@ -355,8 +355,8 @@ complete list):
.. code-block:: xml
-
-
+
+
The records where ``is_partner`` is ``True`` will be displayed in green.
diff --git a/content/developer/howtos/themes.rst b/content/developer/howtos/themes.rst
index 838ecd318..fefdb16f3 100644
--- a/content/developer/howtos/themes.rst
+++ b/content/developer/howtos/themes.rst
@@ -152,7 +152,6 @@ After that, you have to write your code inside a ```` tag.
.. code-block:: xml
- [XML]
@@ -164,7 +163,6 @@ Almost every element and option that you create has to be placed inside a ``
This is an HTML block
And this is a subtitle
diff --git a/content/developer/howtos/web.rst b/content/developer/howtos/web.rst
index 96445291b..69fcec3bd 100644
--- a/content/developer/howtos/web.rst
+++ b/content/developer/howtos/web.rst
@@ -1394,7 +1394,7 @@ merge all those contexts before sending them to the server.
@api.model
def my_method(self):
- print self.env.context
+ print(self.env.context)
// will print: {'lang': 'en_US', 'new_key': 'key_value', 'tz': 'Europe/Brussels', 'uid': 1}
You can see the dictionary in the argument ``context`` contains some keys that
diff --git a/content/developer/reference/backend/actions.rst b/content/developer/reference/backend/actions.rst
index 5314596ec..af97c5306 100644
--- a/content/developer/reference/backend/actions.rst
+++ b/content/developer/reference/backend/actions.rst
@@ -419,7 +419,7 @@ Actions triggered automatically on a predefined frequency.
Number of *interval_type* uom between two executions of the action
``interval_type``
- Unit of measure of frequency interval (``minutes``, ``hours``, ``days``, ``weeks``, ``months``,
+ Unit of measure of frequency interval (``minutes``, ``hours``, ``days``, ``weeks``, ``months``)
``numbercall``
Number of times this action has to be run.
@@ -438,7 +438,7 @@ Actions triggered automatically on a predefined frequency.
.. code-block:: python
- model.()
+ model.()
``nextcall``
Next planned execution date of this action (date/time format)
diff --git a/content/developer/reference/backend/data.rst b/content/developer/reference/backend/data.rst
index 019d76dd5..616581da8 100644
--- a/content/developer/reference/backend/data.rst
+++ b/content/developer/reference/backend/data.rst
@@ -20,11 +20,11 @@ of an XML data file is the following:
.. code-block:: xml
-
+
-
- ...
+
+ ...
Data files are executed sequentially, operations can only refer to the result
@@ -39,15 +39,15 @@ of operations defined previously
.. code-block:: xml
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
Core operations
===============
@@ -173,24 +173,24 @@ values).
.. code-block:: xml
-
-
-
- Odude
-
+
+
+
+ Odude
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+ ...
+
+
.. ignored assert
diff --git a/content/developer/reference/backend/views.rst b/content/developer/reference/backend/views.rst
index 56b9707fd..67716d87c 100644
--- a/content/developer/reference/backend/views.rst
+++ b/content/developer/reference/backend/views.rst
@@ -114,9 +114,9 @@ an impact on all view types.
.. code-block:: xml
-
+ decoration-danger="state == 'help_needed'"
+ decoration-bf="state='busy'">
+
.. warning::
@@ -1739,6 +1739,8 @@ root can have the following attributes:
.. code-block:: xml
+ ...
+
``decoration-{$name}``
allow changing the style of a row's text based on the corresponding
@@ -2485,7 +2487,7 @@ Possible children elements of the search view are:
-
+
In the above example, the range of values for manager_id (manager names) available at screen
will depend on the value currently selected for the field ``department_id``.
diff --git a/content/developer/reference/frontend/javascript_reference.rst b/content/developer/reference/frontend/javascript_reference.rst
index 18d310e8f..292fdda02 100644
--- a/content/developer/reference/frontend/javascript_reference.rst
+++ b/content/developer/reference/frontend/javascript_reference.rst
@@ -1369,36 +1369,36 @@ integer (FieldInteger)
float (FieldFloat)
- This is the default field type for fields of type *float*.
+ This is the default field type for fields of type *float*.
- - Supported field types: *float*
+ - Supported field types: *float*
- Attributes:
+ Attributes:
- - digits: displayed precision
+ - digits: displayed precision
- .. code-block:: xml
+ .. code-block:: xml
-
+
- Options:
+ Options:
- - type: setting the input type (*text* by default, can be set on *number*)
+ - type: setting the input type (*text* by default, can be set on *number*)
- On edit mode, the field is rendered as an input with the HTML attribute type
- set on *number* (so user can benefit the native support, especially on
- mobile). In this case, the default formatting is disabled to avoid incompability.
+ On edit mode, the field is rendered as an input with the HTML attribute type
+ set on *number* (so user can benefit the native support, especially on
+ mobile). In this case, the default formatting is disabled to avoid incompability.
- .. code-block:: xml
+ .. code-block:: xml
-
+
- - step: set the step to the value up and down when the user click on buttons
- (only for input of type number, 1 by default)
+ - step: set the step to the value up and down when the user click on buttons
+ (only for input of type number, 1 by default)
- .. code-block:: xml
+ .. code-block:: xml
-
+
- format: should the number be formatted. (true by default)
@@ -1545,15 +1545,15 @@ phone (FieldPhone)
- Supported field types: *char*
url (UrlWidget)
- This field displays an url (in readonly mode). The main reason to use it is
- that it is rendered as an anchor tag with the proper css classes and href.
+ This field displays an url (in readonly mode). The main reason to use it is
+ that it is rendered as an anchor tag with the proper css classes and href.
- Also, the text of the anchor tag can be customized with the *text* attribute
- (it won't change the href value).
+ Also, the text of the anchor tag can be customized with the *text* attribute
+ (it won't change the href value).
- .. code-block:: xml
+ .. code-block:: xml
-
+
Options:
@@ -2068,7 +2068,7 @@ one2many (FieldOne2Many)
.. code-block:: xml
-
+
statusbar (FieldStatus)
This is a really specialized widget for the form views. It is the bar on top
@@ -2096,7 +2096,7 @@ week_days (WeekDays)
.. code-block:: xml
-
+
Client actions
==============