[IMP] hr: make working calendar required on employee view

When trying to save an employee without working calendar, we
get an error message, since the resource_calendar_id of the
related resource object is required. To have a better error
setting the field required on view is more explicit.
We don't want to set it directly on the field as it is
a related stored field, to avoid recompute problem.
This commit is contained in:
jem-odoo
2018-01-29 10:11:29 +01:00
parent a9c4521178
commit e3a58b4d3f
+1 -1
View File
@@ -70,7 +70,7 @@
<field name="job_id"/>
<field name="parent_id"/>
<field name="coach_id"/>
<field name="resource_calendar_id"/>
<field name="resource_calendar_id" required="1"/>
</group>
</group>
<field name="notes" placeholder="Other Information ..." colspan="4"/>