← Back to team overview

openerp-india team mailing list archive

[Bug 1248227] Re: Multi-company rule for product

 

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

** Tags added: maintenance

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1248227

Title:
  Multi-company rule for product

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  On the latest revision of v7, create a new instance with 2 companies
  (A, B), 2 users (A, B) and one product.

  Associate the product to company B.

  Log in as user B and try to read the product -> fail

  Disable the product multi-company rule -> success

  Re-enable the rule and change it to :

  ['|','|','|',
  ('company_id.child_ids','child_of',[user.company_id.id]),
  ('company_id','child_of',[user.company_id.id]),
  ('company_id','=',user.company_id.id),
  ('company_id','=',False)]

  -> Success

  It looks like the child_of operator does not include the = operator.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1248227/+subscriptions


References