multi_store_security.xml 454 B

123456789101112
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data noupdate="1">
  4. <record id="res_partner_store_rule" model="ir.rule">
  5. <field name="name">Res Partner multi-store</field>
  6. <field name="model_id" ref="base.model_res_partner"/>
  7. <field name="global" eval="True"/>
  8. <field name="domain_force">['|',('store_id','=',False),('store_id','child_of',[user.store_id.id])]</field>
  9. </record>
  10. </data>
  11. </openerp>