You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

58 lines
2.3 KiB

<?xml version="1.0" encoding="utf-8" ?>
<openerp>
<data>
<record id="timesheets_report_view" model="ir.ui.view">
<field name="name">Timesheets Wizard</field>
<field name="model">timesheet.wizard</field>
<field name="arch" type="xml">
<form>
<group>
<group string="Select Employee">
<div>
<label for="employee" string="Employee" />
<field name="employee"/>
</div>
</group>
<group>
<div>
<label for="from_date" string="Starting Date" />
<field name="from_date"/>
<label for="to_date" string="Ending Date" />
<field name="to_date"/>
</div>
</group>
<footer>
<button string="Print Timesheet" name="print_timesheet" type="object" class="btn-primary"/>
<button string="Discard" class="btn-default" special="cancel"/>
</footer>
</group>
</form>
</field>
</record>
<record id="action_print_timesheet_wizard" model="ir.actions.act_window">
<field name="name">Generate Timesheet Report</field>
<field name="res_model">timesheet.wizard</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="timesheets_report_view"/>
<field name="target">new</field>
</record>
<menuitem name="Print Timesheets" id="print_timesheets" action="action_print_timesheet_wizard" parent="hr_timesheet.menu_timesheets_reports"/>
<report
id="action_report_print_timesheets"
model="timesheet.wizard"
report_type="qweb-pdf"
string="Timesheets"
name="timesheets_by_employee.report_timesheets"
file="timesheets_by_employee.report_timesheets"
menu="False"
/>
</data>
</openerp>