Skip to content
Snippets Groups Projects
Commit e6863bbd 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#77339

X-original-commit: 7cda3632
Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent b3680931
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,8 @@
</group>
<group string="Schedule">
<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.
Finish editing this message first!
Please register or to comment