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.
 
 
 
 
 

42 lines
1.8 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Create a wizard form view in timesheet module-->
<record id="timesheet_report_view_form" model="ir.ui.view">
<field name="name">timesheet.report.view.form</field>
<field name="model">timesheet.report</field>
<field name="arch" type="xml">
<form>
<group>
<group string="Select Employee">
<field name="user_id"/>
</group>
<group string="Select Date">
<field name="from_date"/>
<field name="to_date"/>
</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>
<!--create an action for timesheet report-->
<record id="timesheet_report_action"
model="ir.actions.act_window">
<field name="name">Timesheet Report</field>
<field name="res_model">timesheet.report</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">form</field>
<field name="view_id" ref="timesheet_report_view_form"/>
<field name="target">new</field>
</record>
<!-- Add a new menu item in timesheet reporting.-->
<menuitem name="Print Employee Timesheet" id="timesheet_report_menu"
action="timesheet_report_action"
parent="hr_timesheet.menu_timesheets_reports"/>
</odoo>