Add mass allocation wizard

Add counter info on form view of hr.holidays
Fix an issue when checking counter
This commit is contained in:
Alexis de Lattre
2015-06-11 12:43:43 +02:00
parent edcd3c7637
commit 2dbf95cb97
7 changed files with 227 additions and 0 deletions

View File

@@ -34,6 +34,26 @@
<field name="vacation_date_to" on_change="vacation_to(vacation_date_to, vacation_time_to, context)" required="1"/>
<field name="vacation_time_to" on_change="vacation_to(vacation_date_to, vacation_time_to, context)" required="1"/>
</field>
<xpath expr="//field[@name='department_id']/.." position="after">
<group string="Meter for this leave type" name="counters" attrs="{'invisible': [('limit', '=', True)]}">
<field name="limit" invisible="1"/>
<label for="total_allocated_leaves"/>
<div>
<field name="total_allocated_leaves" class="oe_inline"/>
<label string=" days" class="oe_inline"/>
</div>
<label for="current_leaves_taken"/>
<div>
<field name="current_leaves_taken" class="oe_inline"/>
<label string=" days" class="oe_inline"/>
</div>
<label for="current_remaining_leaves"/>
<div>
<field name="current_remaining_leaves" class="oe_inline"/>
<label string=" days" class="oe_inline"/>
</div>
</group>
</xpath>
</field>
</record>