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.

87 lines
3.2 KiB

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