diff options
Diffstat (limited to 'addons/hr_holidays/views/hr_leave_allocation_views.xml')
| -rw-r--r-- | addons/hr_holidays/views/hr_leave_allocation_views.xml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/addons/hr_holidays/views/hr_leave_allocation_views.xml b/addons/hr_holidays/views/hr_leave_allocation_views.xml index 68212af9c7f..e2d66fb694b 100644 --- a/addons/hr_holidays/views/hr_leave_allocation_views.xml +++ b/addons/hr_holidays/views/hr_leave_allocation_views.xml @@ -159,13 +159,14 @@ <attribute name="invisible">0</attribute> </xpath> <xpath expr="//field[@name='allocation_type']" position="after"> - <label for="date_to" string="" - attrs="{'invisible': [('allocation_type', '=', 'regular')]}"/> + <label for="date_from" attrs="{'invisible': [('allocation_type', '=', 'regular')]}"/> + <div class="o_row" attrs="{'invisible': [('allocation_type', '=', 'regular')]}"> + <field name="date_from" widget="date" required="1" class="mr-2"/> + Run until <field name="date_to" help="If no value set, runs indefinitely" class="ml-2" widget="date"/> + </div> + <label for="date_from" invisible="1"/> <div attrs="{'invisible': [('allocation_type', '=', 'regular')]}"> <div class="o_row"> - Run until <field name="date_to" string="Run Until" help="If no value set, runs indefinitely" class="ml-2" widget="date"/> - </div> - <div class="o_row"> <span>Add</span> <field name="number_per_interval" class="ml8" attrs="{'required': [('allocation_type', '=', 'accrual')]}"/> |
