summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2016-04-13 09:33:13 +0200
committerMartin Trigaux <mat@odoo.com>2016-04-18 11:47:43 +0200
commit171f884bdc89e8f3682576ccbfdd44ded2fe3c53 (patch)
treea797ff30303399d6fd10864887090fc39b49bda3 /doc/reference
parentfe7d5263a5112a7ddd0fcce908708cf3dd205124 (diff)
[FIX] doc: deprecated statusbar_color
Can still be mentionned in documentation but should not be used in example.
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/guidelines.rst2
-rw-r--r--doc/reference/views.rst11
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/reference/guidelines.rst b/doc/reference/guidelines.rst
index 51bff7936ba..e4cfe1255ec 100644
--- a/doc/reference/guidelines.rst
+++ b/doc/reference/guidelines.rst
@@ -129,7 +129,7 @@ When declaring a record in XML,
<field name="arch" type="xml">
<tree>
<field name="my_field_1"/>
- <field name="my_field_2" string="My Label" widget="statusbar" statusbar_visible="draft,sent,progress,done" statusbar_colors='{"invoice_except":"red","waiting_date":"blue"}' />
+ <field name="my_field_2" string="My Label" widget="statusbar" statusbar_visible="draft,sent,progress,done" />
</tree>
</field>
</record>
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index 8c2dea837e5..3c8eaa02126 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -363,7 +363,7 @@ system. Available semantic components are:
.. todo:: list of widgets
& options & specific attributes (e.g. widget=statusbar
- statusbar_visible statusbar_colors clickable)
+ statusbar_visible clickable)
``options``
JSON object specifying configuration option for the field's widget
(including default widgets)
@@ -502,13 +502,16 @@ The states are shown following the order used in the field (the list in a
selection field, etc). States that are always visible are specified with the
attribute ``statusbar_visible``.
-``statusbar_colors`` can be used to give a custom color to specific states.
+``statusbar_colors``
+ can be used to give a custom color to specific states.
+
+ .. deprecated:: 9.0
+
::
<field name="state" widget="statusbar"
- statusbar_visible="draft,sent,progress,invoiced,done"
- statusbar_colors="{'shipping_except':'red','waiting_date':'blue'}"/>
+ statusbar_visible="draft,sent,progress,invoiced,done" />
The Sheet
'''''''''