Files
web/web_easy_switch_company/view/res_users_view.xml
Stéphane Bidoul affdfa8cb7 [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.
2014-04-16 19:55:23 +02:00

18 lines
636 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="view_res_users_simple_modif_form" model="ir.ui.view">
<field name="name">res.users.form</field>
<field name="model">res.users</field>
<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="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>
</data>
</openerp>