GoodERP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.8KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="group_sell_own_order_rule" model="ir.rule">
  5. <field name='name'>销售只能看自己的订单</field>
  6. <field name='model_id' ref="sell.model_sell_order"/>
  7. <field name='domain_force'>['|',('user_id','=',user.id),'|',('partner_id.responsible_id','=',user.id),('partner_id.share_id','=',user.id)]</field>
  8. <field name='groups' eval="[(4,ref('sell.own_data_groups'))]"/>
  9. <field name='perm_read' eval='True'/>
  10. <field name='perm_write' eval='True'/>
  11. <field name='perm_create' eval='True'/>
  12. <field name='perm_unlink' eval='True'/>
  13. </record>
  14. <record id="group_sell_own_delivery_rule" model="ir.rule">
  15. <field name='name'>销售只能看自己的发货</field>
  16. <field name='model_id' ref="sell.model_sell_delivery"/>
  17. <field name='domain_force'>['|',('user_id','=',user.id),'|',('partner_id.responsible_id','=',user.id),('partner_id.share_id','=',user.id)]</field>
  18. <field name='groups' eval="[(4,ref('sell.own_data_groups'))]"/>
  19. <field name='perm_read' eval='True'/>
  20. <field name='perm_write' eval='True'/>
  21. <field name='perm_create' eval='True'/>
  22. <field name='perm_unlink' eval='True'/>
  23. </record>
  24. <record id="group_see_own_partner_rule" model="ir.rule">
  25. <field name='name'>销售只能看自己的客户</field>
  26. <field name='model_id' ref="core.model_partner"/>
  27. <field name='domain_force'>['|', ('responsible_id','=',user.id), '|', ('responsible_id','=',False), ('share_id','=',user.id)]</field>
  28. <field name='groups' eval="[(4,ref('sell.own_data_groups'))]"/>
  29. </record>
  30. </data>
  31. </openerp>
上海开阖软件有限公司 沪ICP备12045867号-1