[FIX] doc: remove statusbar_color reference

This attribute has been removed from the web framework since b4c28050
and should not keep example of code with it.
Related to #5987
This commit is contained in:
Martin Trigaux 2016-07-26 14:53:18 +02:00
parent 077dde3a69
commit 245e38d242
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
2 changed files with 3 additions and 6 deletions

View File

@ -129,7 +129,7 @@ When declaring a record in XML,
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree> <tree>
<field name="my_field_1"/> <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> </tree>
</field> </field>
</record> </record>

View File

@ -366,7 +366,7 @@ system. Available semantic components are:
.. todo:: list of widgets .. todo:: list of widgets
& options & specific attributes (e.g. widget=statusbar & options & specific attributes (e.g. widget=statusbar
statusbar_visible statusbar_colors clickable) statusbar_visible clickable)
``options`` ``options``
JSON object specifying configuration option for the field's widget JSON object specifying configuration option for the field's widget
(including default widgets) (including default widgets)
@ -505,13 +505,10 @@ 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 selection field, etc). States that are always visible are specified with the
attribute ``statusbar_visible``. attribute ``statusbar_visible``.
``statusbar_colors`` can be used to give a custom color to specific states.
:: ::
<field name="state" widget="statusbar" <field name="state" widget="statusbar"
statusbar_visible="draft,sent,progress,invoiced,done" statusbar_visible="draft,sent,progress,invoiced,done" />
statusbar_colors="{'shipping_except':'red','waiting_date':'blue'}"/>
The Sheet The Sheet
''''''''' '''''''''