[IMP] Improved code for
authorParamjit Singh Sahota <psa@tinyerp.com>
Wed, 19 Dec 2012 08:50:56 +0000 (14:20 +0530)
committerParamjit Singh Sahota <psa@tinyerp.com>
Wed, 19 Dec 2012 08:50:56 +0000 (14:20 +0530)
Create a leave request for an employee:
    In right panel of calender view under the  user menu we can see the employee name.

bzr revid: psa@tinyerp.com-20121219085056-uaosi0k0z62puuct

addons/hr_holidays/hr_holidays_view.xml

index 9e2870d..41dd39d 100644 (file)
@@ -40,7 +40,7 @@
             <field name="name">Leave Request</field>
             <field name="model">hr.holidays</field>
             <field name="arch" type="xml">
-                <calendar string="Leave Request" color="user_id" date_start="date_from" date_stop="date_to">
+                <calendar string="Leave Request" color="employee_id" date_start="date_from" date_stop="date_to">
                     <field name="employee_id"/>
                     <field name="holiday_status_id"/>
                 </calendar>