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.

20 lines
866 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo noupdate="1">
  3. <record id="contract_contract_own_salesman" model="ir.rule">
  4. <field name="name">See Own Contracts</field>
  5. <field name="model_id" ref="contract.model_contract_contract"/>
  6. <field name="domain_force">['|', ('user_id','=',user.id), ('user_id','=',False)]</field>
  7. <field name="groups" eval="[(4,ref('sales_team.group_sale_salesman'))]"/>
  8. </record>
  9. <record id="contract_contract_see_all" model="ir.rule">
  10. <field name="name">See All Contracts</field>
  11. <field name="model_id" ref="contract.model_contract_contract"/>
  12. <field name="domain_force">[(1,'=',1)]</field>
  13. <field name="groups" eval="[
  14. (4,ref('sales_team.group_sale_salesman_all_leads')),
  15. (4,ref('account.group_account_invoice'))]"/>
  16. </record>
  17. </odoo>