<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

		<record id="view_hr_holidays_summary_dept" model="ir.ui.view">
            <field name="name">hr.holidays.summary.dept.form</field>
            <field name="model">hr.holidays.summary.dept</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
			<form string="Holidays by Department">
			    <group col="4" colspan="6">
				    <field name="date_from"/>
				    <newline/>
				    <field name="holiday_type"/>
				    <newline/>
				    <field name="depts"/>
				</group>
				<separator colspan="4"/>
			    <group col="2" colspan="4">
	            		<button special="cancel"  string="Cancel" icon='gtk-cancel'/>
						<button name="print_report" string="Print" colspan="1" type="object" icon="gtk-yes"/>
				</group>
			</form>
            </field>
        </record>

        <record id="action_hr_holidays_summary_dept" model="ir.actions.act_window">
            <field name="name">Holidays by Department</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">hr.holidays.summary.dept</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

		<menuitem
	        name="Leaves by Department"
	        parent="menu_hr_reporting_holidays"
	        action="action_hr_holidays_summary_dept"
	        id="menu_account_central_journal"
	        groups="base.group_extended"
	        icon="STOCK_PRINT"/>

	</data>
</openerp>