summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2012-05-04 09:31:45 +0200
committerThibault Delavallée <tde@openerp.com>2012-05-04 09:31:45 +0200
commit9a0cf94c75ea5d4889a3dfe0b70498e63643f097 (patch)
tree15256ab158a66df53f836ae3d634de0adb6a8203 /doc/api
parentbad0a7e8b3443edd4b0d0d2424413a568a2a2884 (diff)
parentcbf1c12698f911cf2b16d63eb963ea96260c9f23 (diff)
[MERGE] Merged with main server
bzr revid: tde@openerp.com-20120418150754-gijvu06jii2hzz8g bzr revid: tde@openerp.com-20120504073145-tc7jwahqavtxg4iw
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/font_style.rst28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/api/font_style.rst b/doc/api/font_style.rst
new file mode 100644
index 00000000000..f47a654aa34
--- /dev/null
+++ b/doc/api/font_style.rst
@@ -0,0 +1,28 @@
+Font style in list views
+========================
+
+.. versionadded:: 7.0
+
+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 the ``fonts`` optional attribute in ``view.rng``.
+
+Addon implementation example
+++++++++++++++++++++++++++++
+
+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="Foo List View" fonts="bold:state=='pending'">
+ [...]
+ </tree>