[DOC] Slightly improved documentation.
bzr revid: tde@openerp.com-20120419091404-1sskcrfiql1v7fe7
This commit is contained in:
parent
459abe3c36
commit
8c6ad14da9
|
@ -1,22 +1,28 @@
|
|||
Font style Feature
|
||||
=====================
|
||||
Font style in list views
|
||||
========================
|
||||
|
||||
.. versionadded:: 7.0
|
||||
|
||||
This revision adds font style feature in List view.
|
||||
|
||||
Font style feature can be used by List view able to define the style of fonts based on the state of records.
|
||||
we can set the style of fonts bold , italic and underline by defining in the view.
|
||||
This revision adds font styles in list views. Before this revision it was
|
||||
possible to define some colors in list view. This revision allows to define
|
||||
the a font style, based on an evaluated Python expression. The definition syntax is
|
||||
the same than the colors feature. Supported styles are bold, italic and
|
||||
underline.
|
||||
|
||||
Rng modification
|
||||
+++++++++++++++++
|
||||
|
||||
This revision adds attribute fonts in view.rng
|
||||
This revision adds the ``fonts`` optional attribute in ``view.rng``.
|
||||
|
||||
Addon implementation example
|
||||
++++++++++++++++++++++++++++
|
||||
|
||||
In your ``foo`` module, you want to specify that when it is in state ``pending`` then fons of the record should bold in list view
|
||||
In your ``foo`` module, you want to specify that when any record is in ``pending``
|
||||
state then it should be displayed in bold in the list view. Edit your foo_view.xml
|
||||
file that define the views, and add the fonts attribute to the tree tag.
|
||||
|
||||
::
|
||||
.. code-block:: xml
|
||||
|
||||
<tree string="XYZ" fonts="bold:state=='pending'">
|
||||
<tree string="Foo List View" fonts="bold:state=='pending'">
|
||||
[...]
|
||||
</tree>
|
||||
|
|
Loading…
Reference in New Issue