[FIX] pproduct: extend default security rule to show products from ancestors companies too

This rule is not suited for most OpenERP objects, but it works
well for partners and products as these records are usually
shared between companies, and all company-specific data (such as
acounting data) is set as per-company properties. A partner or
product can thus be shared cleanly between companies.
This was already possible before by just removing the company
assigned to the product, making it globally visible.

bzr revid: odo@openerp.com-20110304135727-hqparbowklv3vqwm
This commit is contained in:
Olivier Dony 2011-03-04 14:57:27 +01:00
parent 25dd135be4
commit 7819ade0ab
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<field name="name" >Product multi-company</field>
<field name="model_id" ref="model_product_template"/>
<field name="global" eval="True"/>
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
<field name="domain_force"> ['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field>
</record>
<record id="group_product_variant" model="res.groups" context="{'noadmin':True}">