Skip to content

Commit d9b77dc

Browse files
committed
[FIX] hr: hide new contract button in case of no contract dates
1 parent a7660c9 commit d9b77dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/hr/views/hr_employee_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
<span invisible="not contract_date_start">to</span>
374374
<field name="contract_date_end" string="End Date" placeholder="Indefinite"
375375
class="o_hr_narrow_field ms-3" invisible="not contract_date_start"/>
376-
<widget name="button_new_contract"/>
376+
<widget name="button_new_contract" invisible="not (contract_date_start and contract_date_end)"/>
377377
</div>
378378
<label for="wage"/>
379379
<div class="o_row" name="wage">

0 commit comments

Comments
 (0)