2008-08-24 14:45:43 +00:00
<?xml version="1.0" ?>
2008-09-10 17:56:00 +00:00
<openerp >
2008-10-27 15:29:13 +00:00
<data >
2010-07-03 10:21:52 +00:00
2009-11-26 06:55:58 +00:00
<record id= "view_hr_holidays_filter" model= "ir.ui.view" >
<field name= "name" > hr.holidays.filter</field>
<field name= "model" > hr.holidays</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Leave" >
2010-03-18 17:39:33 +00:00
<group col= '8' colspan= '4' >
2010-06-04 06:02:25 +00:00
<filter icon= "terp-camera_test" domain= "[('state','=','validate')]" string= "Validated"
2010-09-06 10:47:48 +00:00
default="context.get('report', False)"/>
<separator orientation= "vertical" />
2010-09-06 09:47:54 +00:00
<filter icon= "terp-gtk-go-back-rtl" domain= "[('state','=','draft')]" string= "To Confirm" />
<filter icon= "terp-gtk-go-back-rtl" domain= "[('state','=','confirm')]" string= "To Approve" />
<separator orientation= "vertical" />
<filter string= "This Month" icon= "terp-go-month" name= "This Month"
domain="[('date_from','< =', time.strftime('%%Y-%%m-%%d')), ('date_from','> ',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"/>
2010-06-12 17:49:33 +00:00
<field name= "user_id" />
2010-04-07 09:54:57 +00:00
<field name= "department_id" widget= "selection" >
2010-06-04 06:02:25 +00:00
<filter icon= "terp-personal+" help= "My Department Holidays"
2010-07-03 10:21:52 +00:00
domain="[('department_id.manager_id','=',uid)]" />
2010-04-07 09:54:57 +00:00
</field>
2010-04-07 10:41:20 +00:00
<field name= "holiday_status_id" widget= "selection" />
2010-03-18 17:39:33 +00:00
</group>
<newline />
2010-06-04 06:02:25 +00:00
<group expand= "0" string= "Group By..." >
2010-09-06 10:47:48 +00:00
<filter string= "Employee" icon= "terp-personal" domain= "[]" context= "{'group_by':'employee_id'}" />
<filter string= "Manager" icon= "terp-personal" domain= "[]" context= "{'group_by':'manager_id'}" />
<filter string= "Department" icon= "terp-personal+" domain= "[]" context= "{'group_by':'department_id'}" />
<separator orientation= "vertical" />
2010-06-04 06:02:25 +00:00
<filter string= "Type" icon= "terp-stock_symbol-selection" domain= "[]" context= "{'group_by':'holiday_status_id'}"
2010-04-09 08:22:51 +00:00
default="context.get('report', False)"/>
2010-09-06 10:47:48 +00:00
<separator orientation= "vertical" />
<filter string= "State" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-03-29 08:49:49 +00:00
</group>
2010-03-18 17:39:33 +00:00
</search>
2009-11-26 06:55:58 +00:00
</field>
</record>
2009-11-25 13:07:25 +00:00
<!-- Holidays: Leave Request -->
2010-08-19 11:51:57 +00:00
2010-08-12 07:28:02 +00:00
<record id= "view_holiday_new_calendar" model= "ir.ui.view" >
<field name= "name" > Leave Request</field>
<field name= "model" > hr.holidays</field>
<field name= "type" > calendar</field>
<field name= "arch" type= "xml" >
<calendar string= "Leave Request" color= "name" date_start= "date_from" date_stop= "date_to" >
<field name= "holiday_status_id" />
</calendar>
</field>
</record>
2010-08-19 11:51:57 +00:00
2008-11-17 10:09:37 +00:00
<record model= "ir.ui.view" id= "edit_holiday_new" >
2009-09-24 10:46:21 +00:00
<field name= "name" > Leave Request</field>
2008-10-27 15:29:13 +00:00
<field name= "model" > hr.holidays</field>
<field name= "type" > form</field>
2009-09-24 10:46:21 +00:00
<field name= "priority" > 1</field>
2008-10-27 15:29:13 +00:00
<field name= "arch" type= "xml" >
2009-09-24 10:46:21 +00:00
<form string= "Leave Request" >
2010-05-21 10:58:15 +00:00
<group col= "8" colspan= "4" >
2010-07-03 10:21:52 +00:00
<field name= "name" />
2010-09-06 10:47:48 +00:00
<field name= "holiday_type" on_change= "onchange_type(holiday_type)" attrs= "{'readonly':[('state','!=','draft')]}" width= "130" groups= "base.group_hr_manager" />
2010-05-21 10:58:15 +00:00
<group attrs= "{'invisible':[('holiday_type','=','employee')]}" >
2010-07-03 10:21:52 +00:00
<field name= "category_id" attrs= "{'required':[('holiday_type','=','category')], 'readonly':[('state','!=','draft')]}" />
2010-05-21 10:58:15 +00:00
</group>
<group attrs= "{'invisible':[('holiday_type','=','category')]}" >
2010-07-03 10:21:52 +00:00
<field name= "employee_id" attrs= "{'required':[('holiday_type','=','employee')]}" />
2010-05-21 10:58:15 +00:00
</group>
2010-04-07 10:41:20 +00:00
</group>
2009-09-24 10:46:21 +00:00
<notebook colspan= "4" >
<page string= "General" >
2010-07-03 10:21:52 +00:00
<field name= "holiday_status_id" on_change= "onchange_sec_id(holiday_status_id)" context= "{'employee_id':employee_id}" />
2010-05-24 07:30:52 +00:00
<field name= "department_id" />
2010-07-03 10:21:52 +00:00
<field name= "date_from" on_change= "onchange_date_from(date_to, date_from)" required= "1" />
<field name= "date_to" on_change= "onchange_date_to(date_from, date_to)" required= "1" />
2010-06-29 17:22:04 +00:00
<field name= "number_of_days_temp" />
2010-05-21 10:58:15 +00:00
<newline />
2010-05-24 07:30:52 +00:00
<field name= "manager_id" />
2010-05-21 10:58:15 +00:00
<field name= "manager_id2" />
2010-09-06 10:47:48 +00:00
<separator string= "Reasons" colspan= "4" />
2010-05-21 10:58:15 +00:00
<field name= "notes" nolabel= "1" colspan= "4" />
2009-09-24 10:46:21 +00:00
<newline />
2010-07-03 10:21:52 +00:00
<field name= "state" colspan= "2" />
2009-09-24 10:46:21 +00:00
<group colspan= "2" >
<button string= "Confirm" name= "confirm" states= "draft" type= "workflow" icon= "gtk-yes" />
2010-07-15 09:43:04 +00:00
<button string= "Approve" name= "validate" states= "confirm" type= "workflow" icon= "gtk-apply" />
2010-07-14 06:01:49 +00:00
<button string= "Approved" name= "second_validate" states= "validate1" type= "workflow" icon= "gtk-apply" />
2010-05-10 10:58:32 +00:00
<button string= "Refuse" name= "refuse" states= "confirm,validate1" type= "workflow" icon= "gtk-no" />
2009-09-24 10:46:21 +00:00
<button string= "Cancel" name= "cancel" states= "validate,refuse" type= "workflow" icon= "gtk-cancel" />
<button string= "Set to Draft" name= "set_to_draft" states= "cancel" type= "object" icon= "gtk-convert" />
</group>
</page>
</notebook>
</form>
</field>
</record>
2009-11-25 13:07:25 +00:00
<!-- Holidays: Allocation Request -->
2010-06-29 17:22:04 +00:00
<record model= "ir.ui.view" id= "allocation_leave_new" >
<field name= "name" > Allocation Request</field>
<field name= "model" > hr.holidays</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Allocation Request" >
2010-09-06 10:47:48 +00:00
<group col= "8" colspan= "4" >
2010-07-03 10:21:52 +00:00
<field name= "name" />
2010-06-29 17:22:04 +00:00
<field name= "holiday_type" on_change= "onchange_type(holiday_type)" attrs= "{'readonly':[('state','!=','draft')]}" string= "Allocation Type" />
<group attrs= "{'invisible':[('holiday_type','=','category')]}" >
2010-07-03 10:21:52 +00:00
<field name= "employee_id" attrs= "{'required':[('holiday_type','=','employee')]}" />
2010-06-29 17:22:04 +00:00
</group>
<group attrs= "{'invisible':[('holiday_type','=','employee')]}" >
2010-07-03 10:21:52 +00:00
<field name= "category_id" attrs= "{'required':[('holiday_type','=','category')], 'readonly':[('state','!=','draft')]}" />
2010-06-29 17:22:04 +00:00
</group>
</group>
<notebook colspan= "4" >
<page string= "General" >
2010-09-06 10:47:48 +00:00
<field name= "holiday_status_id" on_change= "onchange_sec_id(holiday_status_id)" context= "{'employee_id':employee_id}" />
<field name= "department_id" />
2010-06-29 17:22:04 +00:00
<field name= "number_of_days_temp" />
2010-09-06 10:47:48 +00:00
<newline />
2010-06-29 17:22:04 +00:00
<field name= "manager_id" />
<field name= "manager_id2" />
2010-09-06 10:47:48 +00:00
<separator string= "Reasons" colspan= "4" />
2010-06-29 17:22:04 +00:00
<field name= "notes" nolabel= "1" colspan= "4" />
<newline />
2010-07-03 10:21:52 +00:00
<field name= "state" colspan= "2" />
2010-06-29 17:22:04 +00:00
<group colspan= "2" >
<button string= "Confirm" name= "confirm" states= "draft" type= "workflow" icon= "gtk-yes" />
2010-09-06 10:47:48 +00:00
<button string= "Approve" name= "validate" states= "confirm" type= "workflow" icon= "gtk-apply" />
2010-07-14 06:01:49 +00:00
<button string= "Approved" name= "second_validate" states= "validate1" type= "workflow" icon= "gtk-apply" />
2010-06-29 17:22:04 +00:00
<button string= "Refuse" name= "refuse" states= "confirm,validate1" type= "workflow" icon= "gtk-no" />
<button string= "Cancel" name= "cancel" states= "validate,refuse" type= "workflow" icon= "gtk-cancel" />
<button string= "Set to Draft" name= "set_to_draft" states= "cancel" type= "object" icon= "gtk-convert" />
</group>
</page>
</notebook>
</form>
</field>
</record>
2009-09-24 10:46:21 +00:00
2010-05-21 13:46:58 +00:00
<record model= "ir.ui.view" id= "view_holiday_allocation_tree" >
<field name= "name" > hr.holidays.allocation.tree</field>
<field name= "model" > hr.holidays</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-07-20 11:14:02 +00:00
<tree colors= "red:state in ('refuse');blue:state in (' draft');black:state in ('confirm','validate','validate1');gray:state in ('cancel') " string= "Leaves" >
2010-05-21 13:46:58 +00:00
<field name= "employee_id" />
<field name= "department_id" />
<field name= "holiday_status_id" />
2010-09-06 10:47:48 +00:00
<field name= "name" />
<field name= "number_of_days" string= "Number of Days" sum= 'Remaining Days' />
2010-05-24 07:30:52 +00:00
<field name= "manager_id" invisible= "1" />
2010-08-09 10:40:10 +00:00
<field name= "user_id" invisible= "1" />
2010-09-06 10:47:48 +00:00
<!-- field name="type"/ -->
2010-05-21 13:46:58 +00:00
<field name= "state" />
</tree>
</field>
</record>
2010-03-17 17:09:26 +00:00
<!-- Holidays: Leaves Management -->
2009-09-24 10:46:21 +00:00
<record model= "ir.ui.view" id= "allocation_company_new" >
2010-03-17 17:09:26 +00:00
<field name= "name" > Leaves Management</field>
2009-09-24 10:46:21 +00:00
<field name= "model" > hr.holidays</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2010-03-17 17:09:26 +00:00
<form string= "Leaves Management" >
2010-07-03 10:21:52 +00:00
<field name= "name" />
<field name= "holiday_status_id" />
2009-09-24 10:46:21 +00:00
<field name= "type" />
2010-07-03 10:21:52 +00:00
<field name= "date_from" on_change= "onchange_date_from(date_to, date_from)" attrs= "{'readonly':[('type','=','add')], 'required':[('type','=','remove')]}" />
<field name= "date_to" on_change= "onchange_date_to(date_from, date_to)" attrs= "{'readonly':[('type','=','add')], 'required':[('type','=','remove')]}" />
2009-09-24 10:46:21 +00:00
<field name= "number_of_days_temp" />
2008-11-20 17:21:19 +00:00
<notebook colspan= "4" >
<page string= "General" >
<field name= "manager_id" />
2008-12-31 09:54:58 +00:00
<field name= "notes" colspan= "4" />
2008-11-20 17:21:19 +00:00
<newline />
2010-07-03 10:21:52 +00:00
<field name= "state" colspan= "2" />
2008-11-20 17:21:19 +00:00
<group colspan= "2" >
2009-09-24 10:46:21 +00:00
<button string= "Confirm" name= "confirm" states= "draft" type= "workflow" icon= "gtk-yes" />
2010-07-14 06:01:49 +00:00
<button string= "Approve" name= "validate" states= "confirm" type= "workflow" icon= "gtk-apply" />
2009-09-24 10:46:21 +00:00
<button string= "Refuse" name= "refuse" states= "confirm" type= "workflow" icon= "gtk-no" />
2010-05-10 10:58:32 +00:00
<button string= "Cancel" name= "cancel" states= "validate,refuse,validate1" type= "workflow" icon= "gtk-cancel" />
2009-09-24 10:46:21 +00:00
<button string= "Set to Draft" name= "set_to_draft" states= "cancel" type= "object" icon= "gtk-convert" />
2008-11-20 17:21:19 +00:00
</group>
</page>
</notebook>
2008-08-28 23:08:10 +00:00
</form>
2008-10-27 15:29:13 +00:00
</field>
</record>
2008-08-24 14:45:43 +00:00
2010-04-07 10:41:20 +00:00
<record model= "ir.ui.view" id= "view_holiday_simple" >
<field name= "name" > hr.holidays.reprot_tree</field>
<field name= "model" > hr.holidays</field>
<field name= "type" > tree</field>
<field name= "priority" > 20</field>
<field name= "arch" type= "xml" >
2010-07-20 11:14:02 +00:00
<tree colors= "red:state in ('refuse');blue:state in (' draft');black:state in ('confirm','validate','validate1');gray:state in ('cancel')" string= "Leaves Summary" >
2010-05-21 10:58:15 +00:00
<field name= "employee_id" />
2010-04-07 10:41:20 +00:00
<field name= "department_id" invisible= "1" />
2010-09-06 10:47:48 +00:00
<field name= "type" />
<field name= "name" />
2010-04-07 10:41:20 +00:00
<field name= "number_of_days" string= "Number of Days" sum= 'Remaining Days' />
2010-09-06 09:47:54 +00:00
<field name= "date_from" />
<field name= "date_to" />
2010-05-21 10:58:15 +00:00
<field name= "holiday_status_id" />
2010-05-24 07:30:52 +00:00
<field name= "manager_id" invisible= "1" />
2010-08-09 10:40:10 +00:00
<field name= "user_id" invisible= "1" />
2010-09-06 09:47:54 +00:00
<field name= "state" />
2010-04-07 10:41:20 +00:00
</tree>
</field>
</record>
2008-10-27 15:29:13 +00:00
<record model= "ir.ui.view" id= "view_holiday" >
<field name= "name" > hr.holidays.tree</field>
2008-12-31 09:54:58 +00:00
<field name= "model" > hr.holidays</field>
2008-10-27 15:29:13 +00:00
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-07-20 11:14:02 +00:00
<tree colors= "red:state in ('refuse');blue:state in (' draft');black:state in ('confirm','validate','validate1');gray:state in ('cancel')" >
2008-11-17 10:09:37 +00:00
<field name= "employee_id" />
2010-02-17 08:49:38 +00:00
<field name= "department_id" />
2009-09-24 10:46:21 +00:00
<field name= "number_of_days" string= "Number of Days" sum= 'Remaining Days' />
2008-08-28 23:08:10 +00:00
<field name= "date_from" />
<field name= "date_to" />
2010-03-18 17:39:33 +00:00
<field name= "name" />
2009-09-24 10:46:21 +00:00
<field name= "holiday_status_id" />
2010-05-24 07:30:52 +00:00
<field name= "manager_id" invisible= "1" />
2010-08-09 10:40:10 +00:00
<field name= "user_id" invisible= "1" />
2010-03-17 17:09:26 +00:00
<field name= "type" />
2010-03-18 17:39:33 +00:00
<field name= "state" />
2008-08-28 23:08:10 +00:00
</tree>
2008-10-27 15:29:13 +00:00
</field>
</record>
2008-08-24 14:45:43 +00:00
2010-02-01 11:09:48 +00:00
<!-- My leave dashboard -->
2010-03-17 17:09:26 +00:00
<menuitem
2010-06-29 17:22:04 +00:00
name="Holidays"
2009-09-24 10:46:21 +00:00
parent="hr.menu_hr_root"
2010-05-10 12:59:15 +00:00
id="menu_open_ask_holidays"
2010-06-16 11:43:59 +00:00
sequence="5"/>
2010-03-17 17:09:26 +00:00
2009-09-24 10:46:21 +00:00
<record model= "ir.actions.act_window" id= "open_ask_holidays" >
2010-04-07 10:41:20 +00:00
<field name= "name" > Leave Requests</field>
2009-09-24 10:46:21 +00:00
<field name= "res_model" > hr.holidays</field>
<field name= "view_type" > form</field>
<field name= "view_id" ref= "edit_holiday_new" />
<field name= "domain" > [('type','=','remove')]</field>
2010-05-20 11:21:31 +00:00
<field name= "context" > {'search_default_user_id':uid}</field>
2009-11-25 13:07:25 +00:00
<field name= "search_view_id" ref= "view_hr_holidays_filter" />
2010-08-20 10:18:04 +00:00
<field name= "help" > Leaves requests can be recorded by employees and validated by their managers. Once a leave request is validated it appears automatically in the agenda of the employee. You can define several allowance types (paid holidays, sickness, etc) and manage allowances per type.</field>
2009-09-24 10:46:21 +00:00
</record>
2009-11-26 06:55:58 +00:00
2010-06-29 17:22:04 +00:00
<record model= "ir.actions.act_window.view" id= "action_open_ask_holidays_tree" >
<field name= "sequence" eval= "1" />
<field name= "view_mode" > tree</field>
<field name= "view_id" ref= "view_holiday" />
<field name= "act_window_id" ref= "open_ask_holidays" />
</record>
2010-01-17 05:57:34 +00:00
2010-06-29 17:22:04 +00:00
<record model= "ir.actions.act_window.view" id= "action_open_ask_holidays_form" >
<field name= "sequence" eval= "2" />
<field name= "view_mode" > form</field>
<field name= "view_id" ref= "edit_holiday_new" />
<field name= "act_window_id" ref= "open_ask_holidays" />
</record>
2009-09-24 10:46:21 +00:00
2010-08-12 07:28:02 +00:00
<record model= "ir.actions.act_window.view" id= "action_open_ask_holidays_calendar" >
<field name= "sequence" eval= "3" />
<field name= "view_mode" > calendar</field>
<field name= "view_id" ref= "view_holiday_new_calendar" />
<field name= "act_window_id" ref= "open_ask_holidays" />
</record>
2010-07-03 10:21:52 +00:00
<menuitem name= "Leave Requests" parent= "menu_open_ask_holidays" id= "menu_open_ask_holidays_new"
2010-06-29 17:22:04 +00:00
action="open_ask_holidays"/>
2009-11-26 06:55:58 +00:00
2010-06-29 17:22:04 +00:00
<record model= "ir.actions.act_window" id= "open_allocation_holidays" >
<field name= "name" > Allocation Requests</field>
<field name= "res_model" > hr.holidays</field>
<field name= "view_type" > form</field>
<field name= "context" > {'search_default_user_id':uid,'type':'add'}</field>
<field name= "domain" > [('type','=','add')]</field>
<field name= "view_id" ref= "allocation_leave_new" />
<field name= "search_view_id" ref= "view_hr_holidays_filter" />
</record>
2009-11-26 06:55:58 +00:00
2010-06-29 17:22:04 +00:00
<record model= "ir.actions.act_window.view" id= "action_open_allocation_holidays_tree" >
<field name= "sequence" eval= "1" />
<field name= "view_mode" > tree</field>
<field name= "view_id" ref= "view_holiday_allocation_tree" />
<field name= "act_window_id" ref= "open_allocation_holidays" />
</record>
2009-11-26 06:55:58 +00:00
2010-06-29 17:22:04 +00:00
<record model= "ir.actions.act_window.view" id= "action_open_allocation_holidays_form" >
<field name= "sequence" eval= "2" />
<field name= "view_mode" > form</field>
<field name= "view_id" ref= "allocation_leave_new" />
<field name= "act_window_id" ref= "open_allocation_holidays" />
</record>
2010-01-17 05:57:34 +00:00
2010-07-03 10:21:52 +00:00
<menuitem name= "Allocation Requests" parent= "menu_open_ask_holidays" id= "menu_open_allocation_holidays"
2010-03-17 17:09:26 +00:00
action="open_allocation_holidays"/>
<record model= "ir.actions.act_window" id= "open_company_allocation" >
<field name= "res_model" > hr.holidays</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2010-05-20 11:21:31 +00:00
<field name= "view_id" eval= "view_holiday_simple" />
<field name= "context" > {'search_default_user_id':uid,'allocation_type':'company', 'report':True}</field>
<field name= "search_view_id" ref= "view_hr_holidays_filter" />
2010-03-17 17:09:26 +00:00
</record>
<menuitem
2010-04-07 10:41:20 +00:00
name="Leaves Summary"
2010-03-17 17:09:26 +00:00
parent="menu_open_ask_holidays"
id="menu_open_company_allocation"
action="open_company_allocation"
sequence="40"/>
2009-09-24 10:46:21 +00:00
2008-10-27 15:29:13 +00:00
<!-- holidays status -->
<record model= "ir.ui.view" id= "edit_holiday_status_form" >
<field name= "name" > hr.holidays.status.form</field>
2008-12-31 09:54:58 +00:00
<field name= "model" > hr.holidays.status</field>
2008-10-27 15:29:13 +00:00
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2009-09-24 10:46:21 +00:00
<form string= "Leave Type" >
2010-07-03 10:21:52 +00:00
<field colspan= "4" name= "name" />
2010-04-18 15:32:44 +00:00
<field name= "limit" />
<field name= "active" />
2010-07-03 10:21:52 +00:00
<field name= "categ_id" widget= "selection" />
2010-04-18 15:32:44 +00:00
<field name= "color_name" />
2010-05-10 10:58:32 +00:00
<field name= "double_validation" />
2008-08-28 23:08:10 +00:00
</form>
2008-10-27 15:29:13 +00:00
</field>
</record>
2010-07-03 10:21:52 +00:00
2008-10-27 15:29:13 +00:00
<record model= "ir.ui.view" id= "view_holiday_status_tree" >
<field name= "name" > hr.holidays.status.tree</field>
2008-12-31 09:54:58 +00:00
<field name= "model" > hr.holidays.status</field>
2008-10-27 15:29:13 +00:00
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2009-09-24 10:46:21 +00:00
<tree string= "Leave Type" >
2008-08-28 23:08:10 +00:00
<field name= "name" />
2009-09-24 10:46:21 +00:00
<field name= "remaining_leaves" />
2008-12-31 09:54:58 +00:00
<field name= "limit" />
2008-08-28 23:08:10 +00:00
</tree>
2008-10-27 15:29:13 +00:00
</field>
</record>
2010-07-03 10:21:52 +00:00
2008-08-28 23:08:10 +00:00
<record id= "open_view_holiday_status" model= "ir.actions.act_window" >
2010-05-21 10:58:15 +00:00
<field name= "name" > Leave Type</field>
2008-08-28 23:08:10 +00:00
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > hr.holidays.status</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
</record>
2009-11-26 06:55:58 +00:00
2010-09-08 09:02:29 +00:00
<menuitem sequence= "3" id= "hr.menu_open_view_attendance_reason_config" parent= "hr.menu_hr_configuration" name= "Holidays" groups= "base.group_system" />
2010-08-12 07:28:02 +00:00
<menuitem name= "Leave Type"
2008-10-31 22:43:31 +00:00
action="open_view_holiday_status"
id="menu_open_view_holiday_status"
2010-01-19 07:35:47 +00:00
parent="hr.menu_open_view_attendance_reason_config"/>
2008-08-24 14:45:43 +00:00
2010-06-29 17:22:04 +00:00
<!-- holiday on resource leave -->
2010-05-11 12:28:51 +00:00
<record id= "resource_calendar_leave_form_inherit" model= "ir.ui.view" >
<field name= "name" > resource.calendar.leaves.form.inherit</field>
<field name= "model" > resource.calendar.leaves</field>
<field name= "type" > form</field>
<field name= "inherit_id" ref= "resource.resource_calendar_leave_form" />
<field name= "arch" type= "xml" >
2010-06-29 17:22:04 +00:00
<field name= "date_to" position= "after" >
<field name= "holiday_id" />
</field>
2010-05-11 12:28:51 +00:00
</field>
2010-06-29 17:22:04 +00:00
</record>
2010-05-11 12:28:51 +00:00
2008-10-27 15:29:13 +00:00
<!-- Shortcuts -->
2010-03-29 08:49:49 +00:00
<act_window name= "Holidays"
2009-09-24 10:46:21 +00:00
domain="[('employee_id', '=', active_id), ('type','=','remove')]"
2008-10-27 15:29:13 +00:00
res_model="hr.holidays"
src_model="hr.employee"
2009-09-24 10:46:21 +00:00
view_id ="eval('edit_holiday_new')"
2008-10-27 15:29:13 +00:00
id="act_hr_employee_holiday_request"/>
2008-08-24 14:45:43 +00:00
2008-10-27 15:29:13 +00:00
</data>
2008-09-10 17:56:00 +00:00
</openerp>