[IMP] hr_attendance: refactor code
[odoo/odoo.git] / addons / hr_timesheet_sheet / hr_timesheet_sheet_data.xml
1 <?xml version="1.0" ?>
2 <openerp>
3     <data noupdate="1">
4         <!-- notify all employees of module installation -->
5         <record model="mail.message" id="hr_timesheet_module_install_notification">
6             <field name="model">mail.group</field>
7             <field name="res_id" ref="mail.group_all_employees"/>
8             <field name="type">notification</field>
9             <field name="subject">Timesheet Validation application installed!</field>
10             <field name="body">From the top menu "Human Resources", enter and validate timesheets and attendances.</field>
11         </record>
12
13         <record id="ir_actions_server_timsheet_sheet" model="ir.actions.server">
14             <field name="sequence" eval="5"/>
15             <field name="state">code</field>
16             <field name="type">ir.actions.server</field>
17             <field name="model_id" ref="model_hr_timesheet_current_open"/>
18             <field name="code">action = pool.get('hr.timesheet.current.open').open_timesheet(cr, uid, None, context)</field>
19             <field name="condition">True</field>
20             <field name="name">My Timesheet</field>
21         </record>
22
23         <menuitem name="My Current Timesheet" id="menu_act_hr_timesheet_sheet_form_my_current" parent="hr_attendance.menu_hr_time_tracking" action="ir_actions_server_timsheet_sheet" sequence="1"/>
24
25     </data>
26 </openerp>