Multi-company rule for product

Bug #1248227 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
OpenERP Publisher's Warranty Team

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.

Tags: maintenance
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Maxime,

I have checked this at my end, But I didn't faced any problem . Would you please provide which kind of error you have faced along with screen-shot .

Thanks and waiting for your reply!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

Thanks Amit.

I will do further testing later this week or the next and keep you updated here.

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openobject-addons:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.