Leonardo,

Sorry for any inconvenience.

Record rules are meant to be worked for multi-company architecture which has 
companies' parent-child relationship.

If you have your companies in parallel, the sequence won't be working for you.

For your aim, you can simply do this:
company_ids += self.pool.get('res.users').browse(cr, uid, uid).company_ids

This will allow the access to ALLOWED companies.

As this is not a general case, I afraid we won't be able to do on stable!

Hope this helps you.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-10420-ira/+merge/66546
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/6.0-opw-10420-ira.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to