[FIX] hr: allow creation of new work location

before this commit, on creating a new work location from
work location menu, is blocking the creation of the record
as a required field is not added in the view.

* Employees -> Configuration -> Employees -> Work location

Message:

The operation cannot be completed:
- Create/update: a mandatory field is not set.
- Delete: another model requires the record being deleted. If possible, archive it instead.

after this commit, the required field is added in the view
and end user can create a new work location from work
location menu

closes odoo/odoo#132537

X-original-commit: 389246bb28355804d895d522e32a7387c4ac44ae
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
This commit is contained in:
niyasraphy
2023-08-22 09:49:49 +02:00
parent 15bb6d5214
commit 845c3c0114
@@ -24,11 +24,13 @@
<group>
<field name="active" invisible="1" />
<field name="name" />
<field name="address_id" />
<field class="o_homework_icon_types d-flex flex-wrap" name="location_type"
widget="hr_homeworking_radio_image" options="{'horizontal': true}"/>
</group>
<group>
<field name="company_id" groups="base.group_multi_company" />
<field name="company_id" groups="!base.group_multi_company" invisible="1" />
</group>
</group>
</sheet>