Skip to content

Commit a165720

Browse files
HashemKhaledmepe-odoo
authored andcommitted
[FIX] hr: hide new contract button if there is no contract dates
This hides the New Contract button when there are no contracts associated with the employee. Task: 5231904
1 parent e8637a9 commit a165720

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
@@ -370,7 +370,7 @@
370370
<span invisible="not contract_date_start">to</span>
371371
<field name="contract_date_end" string="End Date" placeholder="Indefinite"
372372
class="o_hr_narrow_field ms-3" invisible="not contract_date_start"/>
373-
<widget name="button_new_contract"/>
373+
<widget name="button_new_contract" invisible="not contract_date_start"/>
374374
</div>
375375
<label for="wage"/>
376376
<div class="o_row" name="wage">

0 commit comments

Comments
 (0)