[FIX] hr_payroll: payslip line color is blue when total is 0
authorARA (OpenERP) <ara@tinyerp.com>
Mon, 25 Apr 2011 09:41:42 +0000 (15:11 +0530)
committerARA (OpenERP) <ara@tinyerp.com>
Mon, 25 Apr 2011 09:41:42 +0000 (15:11 +0530)
bzr revid: ara@tinyerp.com-20110425094142-w0hjdx79bq84r920

addons/hr_payroll/hr_payroll_view.xml

index e1efc9d..8e49187 100644 (file)
             <field name="model">hr.payslip.line</field>
             <field name="type">tree</field>
             <field name="arch" type="xml">
-                <tree string="Salary Structure" editable="bottom">
+                <tree string="Salary Structure" editable="bottom" colors="blue:total == 0">
                     <field name="category_id"/>
                     <field name="employee_id" invisible="1"/>
                     <field name="sequence" groups="base.group_extended"/>
                     <notebook colspan="4">
                         <page string="Salary Computation" >
                             <field name="line_ids" colspan="4" nolabel="1">
-                                <tree string="Salary Structure" editable="bottom">
+                                <tree string="Salary Structure" editable="bottom" colors="blue:total == 0">
                                     <field name="name"/>
                                     <field name="code"/>
                                     <field name="category_id"/>