[REF] hr_holidays: remove readonly in labels
WHY: it's a copy-paste mistake and doesn't have any meaning, while makes code less readable closes odoo/odoo#61091 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -269,7 +269,6 @@
|
||||
'invisible': [('leave_type_request_unit', '=', 'day')]
|
||||
}"/>
|
||||
<label for="request_unit_half" attrs="{
|
||||
'readonly': [('state', 'not in', ('draft', 'confirm'))],
|
||||
'invisible': [('leave_type_request_unit', '=', 'day')]
|
||||
}"/>
|
||||
<field name="request_unit_hours" attrs="{
|
||||
@@ -277,15 +276,12 @@
|
||||
'invisible': [('leave_type_request_unit', '!=', 'hour')]
|
||||
}" class="ml-5"/>
|
||||
<label for="request_unit_hours" attrs="{
|
||||
'readonly': [('state', 'not in', ('draft', 'confirm'))],
|
||||
'invisible': [('leave_type_request_unit', '!=', 'hour')]
|
||||
}"/>
|
||||
<field name="request_unit_custom" invisible="1" attrs="{
|
||||
'readonly': [('state', 'not in', ('draft', 'confirm'))],
|
||||
}"/>
|
||||
<label for="request_unit_custom" invisible="1" attrs="{
|
||||
'readonly': [('state', 'not in', ('draft', 'confirm'))],
|
||||
}"/>
|
||||
<label for="request_unit_custom" invisible="1"/>
|
||||
</div>
|
||||
<div class="o_row o_row_readonly">
|
||||
<label for="request_hour_from" string="From"
|
||||
|
||||
Reference in New Issue
Block a user