Files
odoo_source/addons/hr_holidays/report/available_holidays_view.xml
T
Yannick Tivisse 1723ed5842 [FIX] hr_holidays: Display the remaining leaves on Leaves Analysis
There was a domain on the action to display only the leaves and not
the allocations. Because of this, it was impossible to display the
used leaves, the allocated leaves and the remaining leaves on the same
view, which is frustrating for a HR when he wants to reports some leaves
from a legal year to another
2016-02-04 11:59:43 +01:00

65 lines
2.6 KiB
XML

<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_holiday_pivot">
<field name="name">hr.holidays.report_pivot</field>
<field name="model">hr.holidays</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<pivot string="Leaves Summary">
<field name="employee_id" type="row"/>
<field name="type" type="row"/>
<field name="date_from" type="col"/>
<field name="number_of_days" type="measure"/>
</pivot>
</field>
</record>
<record model="ir.ui.view" id="view_holiday_graph">
<field name="name">hr.holidays.report_graph</field>
<field name="model">hr.holidays</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<graph string="Leaves Summary">
<field name="employee_id"/>
<field name="type"/>
<field name="number_of_days" type="measure"/>
</graph>
</field>
</record>
<record model="ir.actions.act_window" id="action_hr_available_holidays_report">
<field name="name">Leaves Analysis</field>
<field name="res_model">hr.holidays</field>
<field name="view_type">form</field>
<field name="view_mode">graph,pivot,calendar,form</field>
<field name="view_id"></field> <!-- force empty -->
<field name="context">{'search_default_leaves':1}</field>
<field name="search_view_id" ref="view_hr_holidays_filter"/>
</record>
<record model="ir.actions.act_window.view" id="action_window_leave_pivot">
<field name="sequence" eval="2"/>
<field name="view_mode">pivot</field>
<field name="view_id" ref="view_holiday_pivot"/>
<field name="act_window_id" ref="action_hr_available_holidays_report"/>
</record>
<record model="ir.actions.act_window.view" id="action_window_leave_graph">
<field name="sequence" eval="2"/>
<field name="view_mode">graph</field>
<field name="view_id" ref="view_holiday_graph"/>
<field name="act_window_id" ref="action_hr_available_holidays_report"/>
</record>
<menuitem
name="Leaves"
id="menu_hr_available_holidays_report_tree"
action="action_hr_available_holidays_report"
parent="menu_hr_holidays_report" sequence="5" />
</data>
</openerp>