20 lines
894 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo noupdate="1">
  3. <record id="account_analytic_account_own_salesman" model="ir.rule">
  4. <field name="name">See Own Contracts</field>
  5. <field name="model_id" ref="analytic.model_account_analytic_account"/>
  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="account_analytic_account_see_all" model="ir.rule">
  10. <field name="name">See All Contracts</field>
  11. <field name="model_id" ref="analytic.model_account_analytic_account"/>
  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>