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.

85 lines
3.6 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="crm_case_form_view_leads_job_position">
  5. <field name="name">CRM - Leads Form with job positions</field>
  6. <field name="model">crm.lead</field>
  7. <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
  8. <field name="arch" type="xml">
  9. <field name="function" position="before">
  10. <field name="job_position"/>
  11. </field>
  12. </field>
  13. </record>
  14. <!-- Uncomment this to add a new column to tree view
  15. <record model="ir.ui.view" id="crm_case_tree_view_leads_job_position">
  16. <field name="name">Leads with job_position</field>
  17. <field name="model">crm.lead</field>
  18. <field name="inherit_id" ref="crm.crm_case_tree_view_leads"/>
  19. <field name="arch" type="xml">
  20. <field name="function" position="before">
  21. <field name="job_position"/>
  22. </field>
  23. </field>
  24. </record>
  25. -->
  26. <record model="ir.ui.view" id="view_crm_case_leads_filter_job_position">
  27. <field name="name">CRM - Leads Search with job positions</field>
  28. <field name="model">crm.lead</field>
  29. <field name="inherit_id" ref="crm.view_crm_case_leads_filter"/>
  30. <field name="arch" type="xml">
  31. <field name="section_id" position="after">
  32. <field name="job_position"/>
  33. </field>
  34. <filter string="Sales Team" position="after">
  35. <filter string="job_position"
  36. domain="[]"
  37. context="{'group_by': 'job_position'}"/>
  38. </filter>
  39. </field>
  40. </record>
  41. <record model="ir.ui.view" id="crm_case_form_view_oppor_job_position">
  42. <field name="name">CRM - Leads Form with job position</field>
  43. <field name="model">crm.lead</field>
  44. <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
  45. <field name="arch" type="xml">
  46. <field name="function" position="before">
  47. <field name="job_position"/>
  48. </field>
  49. </field>
  50. </record>
  51. <!-- Uncomment this to add a new column to tree view
  52. <record model="ir.ui.view" id="crm_case_tree_view_oppor_job_position">
  53. <field name="name">Leads with job position</field>
  54. <field name="model">crm.lead</field>
  55. <field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/>
  56. <field name="arch" type="xml">
  57. <field name="section_id" position="after">
  58. <field name="job_position"/>
  59. </field>
  60. </field>
  61. </record>
  62. -->
  63. <record model="ir.ui.view" id="view_crm_case_opportunities_filter_job_position">
  64. <field name="name">CRM - Leads Search with job positions</field>
  65. <field name="model">crm.lead</field>
  66. <field name="inherit_id" ref="crm.view_crm_case_opportunities_filter"/>
  67. <field name="arch" type="xml">
  68. <field name="section_id" position="after">
  69. <field name="job_position"/>
  70. </field>
  71. <filter string="Sales Team" position="after">
  72. <filter string="Job position"
  73. domain="[]"
  74. context="{'group_by': 'job_position'}"/>
  75. </filter>
  76. </field>
  77. </record>
  78. </data>
  79. </openerp>