Up-port new stuff from hr_holidays_usability from 7.0 to 8.0
This commit is contained in:
@@ -38,6 +38,29 @@ hr_holidays.edit_holiday_new is used for both leaves and allocation -->
|
||||
<field name="vacation_date_to" attrs="{'required': [('type', '=', 'remove')], 'invisible': [('type', '=', 'add')]}"/>
|
||||
<field name="vacation_time_to" attrs="{'required': [('type', '=', 'remove')], 'invisible': [('type', '=', 'add')]}"/>
|
||||
</field>
|
||||
<xpath expr="//field[@name='department_id']/.." position="after">
|
||||
<group string="Counter 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 name="department_id" position="after">
|
||||
<field name="posted_date" groups="base.group_hr_user"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -50,7 +73,7 @@ hr_holidays.edit_holiday_new is used for both leaves and allocation -->
|
||||
<attribute name="invisible">1</attribute>
|
||||
</field>
|
||||
<field name="number_of_days" position="after">
|
||||
<field name="number_of_days_remove"/>
|
||||
<field name="number_of_days_remove" sum="Total Days of Vacation"/>
|
||||
</field>
|
||||
<field name="date_from" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
@@ -69,6 +92,9 @@ hr_holidays.edit_holiday_new is used for both leaves and allocation -->
|
||||
<field name="holiday_status_id" position="attributes">
|
||||
<attribute name="invisible">0</attribute>
|
||||
</field>
|
||||
<field name="holiday_status_id" position="after">
|
||||
<field name="posted_date" groups="base.group_hr_user"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user