← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 767270] Re: multi_company - switch company prohibited by Record Rules

 

*** This bug is a duplicate of bug 764745 ***
    https://bugs.launchpad.net/bugs/764745

** This bug has been marked a duplicate of bug 764745
   user can't change company
 * You can subscribe to bug 764745 by following this link: https://bugs.launchpad.net/openobject-server/+bug/764745/+subscribe

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/767270

Title:
  multi_company - switch company prohibited by Record Rules

Status in OpenERP Modules (addons):
  New

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


References