← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 748927] Re: multicompany - inconsistent security rule definitions

 

not for document module:
['|','|',('group_ids','in',[g.id for g in user.groups_id]), ('user_id', '=', user.id), '&', ('user_id', '=', False), ('group_ids','=',False),  '|','|', ('company_id','=',False), ('company_id','child_of',[user.company_id.id]),('company_id.child_ids','child_of',[user.company_id.id])]

may be its correct  as the rule is for "Read public directories", 
I let the related team decide.
thanks

** Changed in: openobject-addons
     Assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

** Changed in: openobject-addons
       Status: Fix Committed => Triaged

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

Title:
  multicompany - inconsistent security rule definitions

Status in OpenERP Modules (addons):
  Triaged

Bug description:
  IMHO either
  ['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]
  or 
  ['|','|',('company_id','child_of',[user.company_id.id]),('company_id','=',False),('company_id.child_ids','child_of',[user.company_id.id])]

  must  be correct and be used everywhere.

  It seems strange that pruchase and sale order have different company
  access rules



References