ADDED FIELD FONT COLOR AND BACK COLOR

bzr revid: dsh@tinyerp.com-08e178593fa99b5f9f815a56e110f509b1ab7370
This commit is contained in:
Dhara Shah 2007-05-12 08:54:31 +00:00
parent 87cab42523
commit 2501495511
3 changed files with 4 additions and 2 deletions

View File

@ -120,8 +120,8 @@ class account_report(osv.osv):
string='Status'
),
'style': fields.selection([('1','Header 1'), ('2','Header 2'), ('3','Header 3'), ('4','Header 4'), ('5','Normal'), ('6', 'Small')], 'Style', required=True),
'color_font' : fields.selection([('green','Green'),('red','Red')], 'Font Color')
#color_font and color_background
'color_font' : fields.selection([('green','Green'),('red','Red'),('pink','Pink'),('blue','Blue'),('yellow','Yellow'),('cyan','Cyan'),('lightblue','Light Blue'),('orange','orange')], 'Font Color',help="Font Color for the report"),
'color_back' : fields.selection([('green','Green'),('red','Red'),('pink','Pink'),('blue','Blue'),('yellow','Yellow'),('cyan','Cyan'),('lightblue','Light Blue'),('orange','orange')], 'Back Color')
}
_defaults = {
'style': lambda *args: '5',

View File

@ -18,6 +18,7 @@
<field name="type" select="1"/>
<field name="style"/>
<field name="color_font"/>
<field name="color_back"/>
<newline/>
<field name="expression" colspan="4"/>
<field name="expression_status" colspan="4"/>

View File

@ -47,6 +47,7 @@ class accounting_report(report_sxw.rml_parse):
'note':res[0]['note'],
'level': level,
'color_font':res[0]['color_font'],
'color_back':res[0]['color_back']
}
self.ret_list.append(ret_dict)