Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
171f884b
Unverified
Commit
171f884b
authored
9 years ago
by
Martin Trigaux
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] doc: deprecated statusbar_color
Can still be mentionned in documentation but should not be used in example.
parent
fe7d5263
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/reference/guidelines.rst
+1
-1
1 addition, 1 deletion
doc/reference/guidelines.rst
doc/reference/views.rst
+7
-4
7 additions, 4 deletions
doc/reference/views.rst
with
8 additions
and
5 deletions
doc/reference/guidelines.rst
+
1
−
1
View file @
171f884b
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
doc/reference/views.rst
+
7
−
4
View file @
171f884b
...
...
@@ -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
'''''''''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment