commission_security.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="sale_commission_multicompany_rule" model="ir.rule">
  5. <field name="name">Sale commission multi-company</field>
  6. <field name="model_id" ref="model_sale_commission"/>
  7. <field name="global" eval="True"/>
  8. <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>
  9. </record>
  10. <record id="account_invoice_line_agent_multicompany_rule" model="ir.rule">
  11. <field name="name">Invoice line agent multi-company</field>
  12. <field name="model_id" ref="model_account_invoice_line_agent"/>
  13. <field name="global" eval="True"/>
  14. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  15. </record>
  16. <record id="sale_commission_settlement_multicompany_rule" model="ir.rule">
  17. <field name="name">Settlement multi-company</field>
  18. <field name="model_id" ref="model_sale_commission_settlement"/>
  19. <field name="global" eval="True"/>
  20. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  21. </record>
  22. <record id="sale_commission_settlement_line_multicompany_rule" model="ir.rule">
  23. <field name="name">Settlement line multi-company</field>
  24. <field name="model_id" ref="model_sale_commission_settlement_line"/>
  25. <field name="global" eval="True"/>
  26. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  27. </record>
  28. </data>
  29. </openerp>