multi_company - switch company prohibited by Record Rules

Bug #767270 reported by Ferdinand
This bug report is a duplicate of:  Bug #764745: user can't change company. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

the first rule prohibits that user switches company.
what is enoying, the user can select any company defined but it gets quietly deleted by
....
                if 'company_id' in values:
                    if not (values['company_id'] in self.read(cr, uid, uid, ['company_ids'], context=context)['company_ids']):
                        del values['company_id']

./base/res/res_security.xml:20: <field name="name">company rule</field>

./base/security/base_security.xml:60: <field name="name">Multi_company_default company</field>

IMHO there should be only ONE ...._security.xml to avoid confusion

found in
server 3404

Revision history for this message
Ferdinand (office-chricar) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.