diff --git a/doc/api/font_style.rst b/doc/api/font_style.rst index f0261e9d144..f47a654aa34 100644 --- a/doc/api/font_style.rst +++ b/doc/api/font_style.rst @@ -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 - + + [...] +