multi_store_security.xml 1.3 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data noupdate="1">
  4. <record id="pos_config_store_rule" model="ir.rule">
  5. <field name="name">Pos Config multi-store</field>
  6. <field name="model_id" ref="point_of_sale.model_pos_config"/>
  7. <field name="global" eval="True"/>
  8. <field name="domain_force">['|',('journal_id.store_ids','=',False),('journal_id.store_ids','child_of',[user.store_id.id])]</field>
  9. </record>
  10. <record id="pos_order_store_rule" model="ir.rule">
  11. <field name="name">Pos Order multi-store</field>
  12. <field name="model_id" ref="point_of_sale.model_pos_order"/>
  13. <field name="global" eval="True"/>
  14. <field name="domain_force">['|',('sale_journal.store_ids','=',False),('sale_journal.store_ids','child_of',[user.store_id.id])]</field>
  15. </record>
  16. <record id="pos_session_store_rule" model="ir.rule">
  17. <field name="name">Pos Session multi-store</field>
  18. <field name="model_id" ref="point_of_sale.model_pos_session"/>
  19. <field name="global" eval="True"/>
  20. <field name="domain_force">['|',('config_id.journal_id.store_ids','=',False),('config_id.journal_id.store_ids','child_of',[user.store_id.id])]</field>
  21. </record>
  22. </data>
  23. </openerp>