46 lines
1.7 KiB
XML
46 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
© 2015-2017 Akretion (http://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
<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">
|
|
<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_administration_menu"
|
|
groups="hr_holidays.group_hr_holidays_manager"/>
|
|
|
|
</odoo>
|