From 8c6ad14da90c2bd0facda087bd956010253e043c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 19 Apr 2012 11:14:04 +0200 Subject: [PATCH] [DOC] Slightly improved documentation. bzr revid: tde@openerp.com-20120419091404-1sskcrfiql1v7fe7 --- doc/api/font_style.rst | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) 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 - + + [...] +