openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26631
[Bug 1248227] [NEW] Multi-company rule for product
Public bug reported:
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.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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):
New
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
Follow ups
References