Skip to content

Commit

Permalink
[FIX] hr: allow creation of new work location
Browse files Browse the repository at this point in the history
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#132537

X-original-commit: 389246b
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
  • Loading branch information
niyasraphy committed Aug 22, 2023
1 parent 15bb6d5 commit 845c3c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/hr/views/hr_work_location_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 845c3c0

Please sign in to comment.