[FIX] hr_contract: remove create button for contract history

Steps to reproduce:
- install hr and hr_contract apps
- go to Employees app > Employees > Contracts
- switch to Kanban view

There you can see a 'Create' button. If you click it, it creates a
contract history form view for the default employee, which is 'False'.

This view is not needed, since it doesn't make sense to create a contract
history by itself, as opposed to creating a contract history when a new
employee is added to the database.

This commit removes the contract history 'Create' button.

opw-2929424

closes odoo/odoo#97780

X-original-commit: 337400b00bcaced2f27417e7a925582b80b6a514
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: stcc-odoo <stcc@odoo.com>
This commit is contained in:
Stefan-Calin Crainiciuc (stcc)
2022-08-19 14:28:16 +02:00
parent c1b41bcd08
commit df9c2967f0
@@ -144,7 +144,8 @@
edit="false"
delete="false"
duplicate="false"
import="false">
import="false"
create="false">
<field name="employee_id" widget="many2one_avatar_employee"/>
<field name="date_hired"/>
<field name="is_under_contract" invisible="1"/>
@@ -168,7 +169,7 @@
<field name="name">hr.contract.history.view.kanban</field>
<field name="model">hr.contract.history</field>
<field name="arch" type="xml">
<kanban class="o_kanban_small_column" default_order="date_end" sample="1">
<kanban class="o_kanban_small_column" default_order="date_end" sample="1" create="0">
<field name="employee_id"/>
<field name="activity_state"/>
<field name="state"/>