← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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


Follow ups

References