[FIX] hr: cannot select Working Hour if it doesn't have a company to set

up default Working Hour for a company

Setps:
1. `Standard 38 hours/week` data doesn't have a company
2. Employees menu > Configuration > Settings
3. cannot select `Standard 38 hours/week` to set

closes odoo/odoo#147995

X-original-commit: 352843ff8a8d204007f021153765d093aeb11fb5
Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
This commit is contained in:
Roy Le
2024-01-04 17:02:28 +00:00
committed by Dossogne Bertrand
parent f1d6919642
commit c589c894bb
@@ -49,7 +49,9 @@
</block>
<block title="Work Organization" name="work_organization_setting_container">
<setting company_dependent="1" help="Set default company schedule to manage your employees working time" id="default_company_schedule_setting">
<field name="resource_calendar_id" required="1" class="o_light_label" domain="[('company_id', '=', company_id)]" context="{'default_company_id': company_id}"/>
<field name="resource_calendar_id" required="1" class="o_light_label"
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]"
context="{'default_company_id': company_id}"/>
</setting>
</block>
<block title="Employee Update Rights" name="employee_rights_setting_container">