[FIX] hr_recruitment: fix crash outside of multi company
Since recently fields are not present in the views if the user does not match the groups attribute on that field, this means that the field is not loaded an may not be used in domains in `attrs` for example. Most fields were properly checked but some remained broken. closes odoo/odoo#99751 Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
<field name="salary_proposed" optional="hide"/>
|
||||
<field name="availability" optional="hide"/>
|
||||
<field name="department_id" invisible="context.get('invisible_department', True)" readonly="1"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="company_id" groups="base.group_multi_company" readonly="1" optional="hide"/>
|
||||
</tree>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user