48 lines
1.7 KiB
XML
48 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2015 Akretion (http://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
The licence is in the file __openerp__.py
|
|
-->
|
|
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="hr_holidays_post_form" model="ir.ui.view">
|
|
<field name="name">hr_holidays_post_form</field>
|
|
<field name="model">hr.holidays.post</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Post Leaves" version="7.0">
|
|
<group name="main" string="Leave Requests to Post">
|
|
<field name="state" invisible="1"/>
|
|
<field name="before_date" states="draft"/>
|
|
<field name="holidays_to_post_ids" nolabel="1"
|
|
context="{'tree_view_ref': 'hr_holidays.view_holiday'}"
|
|
states="done"/>
|
|
</group>
|
|
<footer>
|
|
<button name="select_date" type="object" string="Get Holiday Requests"
|
|
class="oe_highlight" states="draft"/>
|
|
<button name="run" type="object" string="Post"
|
|
class="oe_highlight" states="done"/>
|
|
<button special="cancel" string="Cancel" class="oe_link"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="hr_holidays_post_action" model="ir.actions.act_window">
|
|
<field name="name">Post Leave Requests</field>
|
|
<field name="res_model">hr.holidays.post</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<menuitem id="hr_holidays_post_menu"
|
|
action="hr_holidays_post_action"
|
|
parent="hr_holidays.menu_open_ask_holidays"
|
|
groups="base.group_hr_user" sequence="30"/>
|
|
|
|
</data>
|
|
</openerp>
|