odex30_standard/exp_timesheet_missing_reminder/views/wizard_approve.xml

39 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!--Account Move lines-->
<record id="approve_timesheet_view" model="ir.ui.view">
<field name="name">Approve Multi Timesheet</field>
<field name="model">approve.multi.timesheet</field>
<field name="arch" type="xml">
<form string="Approve Multi Timesheet">
<group>
<span>All selected Timesheet will be Approved Are You Sure?</span>
</group>
<footer>
<button string="Approve Multi Timesheet" name="validate_timesheet" type="object"
default_focus="1" class="btn-primary"
groups="hr_timesheet.group_timesheet_manager"/>
<button string="Cancel" class="btn-default" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="action_approve_multi_timesheet" model="ir.actions.act_window">
<field name="name">Approve Multi Timesheet</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">approve.multi.timesheet</field>
<field name="view_mode">form</field>
<field name="view_id" ref="approve_timesheet_view"/>
<field name="context">{}</field>
<field name="target">new</field>
<field name="help">This wizard will Approve all selected timesheet</field>
<field name="binding_model_id" ref="hr_timesheet_sheet.model_hr_timesheet_sheet"/>
<field name="groups_id" eval="[(4, ref('hr_timesheet.group_timesheet_manager'))]"/>
</record>
</data>
</odoo>