Skip to content
Snippets Groups Projects
Commit 7cda3632 authored by Swapnesh Shah's avatar Swapnesh Shah
Browse files

[IMP] hr: Make timezone required on saved record


`tz` field is technical field related to `resource_id`, which is required field on that model.

However it is possible to try to write a void value, which leads to an issue as it is technically required.
With this commit we make the tz field required at write.

closes odoo/odoo#45557

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 4c4e9bf6
Branches
Tags
No related merge requests found
......@@ -116,7 +116,8 @@
</group>
<group string="Schedule" groups="base.group_no_one">
<field name="resource_calendar_id" required="1"/>
<field name="tz"/>
<field name="id" invisible="1"/>
<field name="tz" attrs="{'required': [('id', '!=', False)]}"/>
</group>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment