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.

47 lines
1.9 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_partner_form_job_position">
  5. <field name="name">Partner form with job position</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <field name="function" position="before">
  10. <field name="job_position"
  11. placeholder="Job position"
  12. attrs="{'invisible': [('is_company','=', True)]}"/>
  13. </field>
  14. </field>
  15. </record>
  16. <!-- Uncomment this to add a new column to tree view
  17. <record model="ir.ui.view" id="view_partner_tree_job_position">
  18. <field name="name">Partner tree with job position</field>
  19. <field name="model">res.partner</field>
  20. <field name="inherit_id" ref="base.view_partner_tree"/>
  21. <field name="arch" type="xml">
  22. <field name="email" position="after">
  23. <field name="job_position"/>
  24. </field>
  25. </field>
  26. </record>
  27. -->
  28. <record model="ir.ui.view" id="view_res_partner_filter_job_position">
  29. <field name="name">Partner search with job position</field>
  30. <field name="model">res.partner</field>
  31. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  32. <field name="arch" type="xml">
  33. <field name="category_id" position="after">
  34. <field name="job_position"/>
  35. </field>
  36. <filter string="Salesperson" position="after">
  37. <filter string="Job position"
  38. domain="[]"
  39. context="{'group_by': 'job_position'}"/>
  40. </filter>
  41. </field>
  42. </record>
  43. </data>
  44. </openerp>