Skip to content

Commit bb78e9a

Browse files
covey-odooamry-odoo
authored andcommitted
[FIX] Employees: New Contract should only appear if no contract start
date "New Contract" button should only appear if no contract start date was set. task-6186584
1 parent 14dd42d commit bb78e9a

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)