[IMP] hr: make default calendar required

Through the HR setting, you can set the default
calendar for employee in the company. This field
is not required, and not setting it can be annoying
on employee creation.
This commit makes the field required only on the UI,
as default calendar is generated on company creation,
we can not set the required flag on the model.

Task-1827986
This commit is contained in:
jem-odoo
2019-01-14 14:33:04 +00:00
parent 2f4ec15a37
commit 44b9f1efbe
@@ -21,7 +21,7 @@
</div>
<div class="content-group">
<div class="mt16">
<field name="resource_calendar_id"
<field name="resource_calendar_id" required="1"
class="o_light_label"
domain="[('company_id', '=', company_id)]"
context="{'default_company_id': company_id}"/>