Skip to content

Commit eb38cf1

Browse files
SebVdemepe-odoo
authored andcommitted
[FIX] hr: hide new contract button
In the employee form view, Payroll tab, the button 'New Contract' is invisible if there is no contract start date. Task: 6186053
1 parent a67263d commit eb38cf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/hr/views/hr_employee_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
<span invisible="not contract_date_start">to</span>
376376
<field name="contract_date_end" string="End Date" placeholder="Indefinite" widget="date_dynamic_min" options="{'min_date_field': 'contract_date_start'}"
377377
class="o_hr_narrow_field ms-3" invisible="not contract_date_start" required="fixed_term"/>
378-
<widget name="button_new_contract"/>
378+
<widget name="button_new_contract" invisible="not contract_date_start"/>
379379
</div>
380380
<field name="fixed_term" string="Fixed Term"/>
381381
<label for="wage"/>

0 commit comments

Comments
 (0)