[IMP] improved code.

bzr revid: tpa@tinyerp.com-20120404132930-gqlw6a4f5y9ng0pd
This commit is contained in:
Turkesh Patel (Open ERP) 2012-04-04 18:59:30 +05:30
parent e685e4b3b6
commit 09a40e6cb8
1 changed files with 3 additions and 1 deletions

View File

@ -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;';}
}
}
}