forked from Techsystech/web
[FIX] web_easy_switch_company: hide instead of removing company_id field in user preferences
Some other modules extending the user form rely on the presence of the company_id field, and break when it is removed.7.0
parent
a62d47694c
commit
affdfa8cb7
|
@ -8,7 +8,9 @@
|
|||
<field name="inherit_id" ref="base.view_users_form_simple_modif"/>
|
||||
<field name="arch" type="xml">
|
||||
<!-- hide old behaviour to change company -->
|
||||
<field name="company_id" position="replace" />
|
||||
<field name="company_id" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
|
|
Loading…
Reference in New Issue