75 lines
3.0 KiB
XML
75 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- Print Employee Timesheet -->
|
|
<record id="view_hr_timesheet_employee" model="ir.ui.view">
|
|
<field name="name">hr.analytical.timesheet.employee.form</field>
|
|
<field name="model">hr.analytical.timesheet.employee</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Employee Timesheet">
|
|
<group colspan="4" >
|
|
<field name="month" />
|
|
<field name="year" />
|
|
<field name="user_id" colspan="3" />
|
|
</group>
|
|
<group colspan="4" col="6">
|
|
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
|
<button icon="gtk-yes" string="Print" name="print_report" type="object"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_hr_timesheet_employee" model="ir.actions.act_window">
|
|
<field name="name">Employee Timesheet</field>
|
|
<field name="res_model">hr.analytical.timesheet.employee</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="view_hr_timesheet_employee"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<menuitem action="action_hr_timesheet_employee"
|
|
id="menu_hr_timesheet_employee"
|
|
parent="menu_hr_reporting_timesheet"
|
|
groups="base.group_extended"/>
|
|
|
|
|
|
<!-- Print My Timesheet -->
|
|
<record id="view_hr_timesheet_my" model="ir.ui.view">
|
|
<field name="name">hr.analytical.timesheet.my.form</field>
|
|
<field name="model">hr.analytical.timesheet.employee</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Print My Timesheet">
|
|
<group colspan="4" >
|
|
<field name="month" />
|
|
<field name="year" />
|
|
</group>
|
|
<group colspan="4" col="6">
|
|
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
|
<button icon="gtk-yes" string="Print" name="print_report" type="object"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_hr_timesheet_my" model="ir.actions.act_window">
|
|
<field name="name">My Timesheet</field>
|
|
<field name="res_model">hr.analytical.timesheet.employee</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="view_hr_timesheet_my"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<menuitem action="action_hr_timesheet_my"
|
|
id="menu_hr_timesheet_my"
|
|
parent="menu_hr_reporting_timesheet"
|
|
groups="hr.group_hr_user" />
|
|
|
|
</data>
|
|
</openerp>
|