From 09a40e6cb8aa31f9902aaeea83bc3396e3fd0617 Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Wed, 4 Apr 2012 18:59:30 +0530 Subject: [PATCH] [IMP] improved code. bzr revid: tpa@tinyerp.com-20120404132930-gqlw6a4f5y9ng0pd --- addons/web/static/src/js/view_list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index b2a23ac5451..29569a43a62 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -163,7 +163,9 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView# font = pair[0], expression = pair[1]; if (py.evaluate(expression, context).toJSON()) { - style = 'font-weight: bold;'; + if (font == 'bold'){style = 'font-weight: bold;';} + if (font == 'italic'){style = 'font-style: italic;';} + if (font == 'underline'){style = 'text-decoration: underline;';} } } }