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.

54 lines
2.0 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
  1. <?xml version="1.0" encoding="utf-8"?>
  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. options='{"no_open": True}'/>
  14. </field>
  15. <xpath expr="//field[@name='child_ids']/form//field[@name='function']" position="before">
  16. <field name="job_position"
  17. placeholder="Job position"
  18. attrs="{'invisible': [('is_company','=', True)]}"
  19. options='{"no_open": True}'/>
  20. </xpath>
  21. </field>
  22. </record>
  23. <!-- Uncomment this to add a new column to tree view
  24. <record model="ir.ui.view" id="view_partner_tree_job_position">
  25. <field name="name">Partner tree with job position</field>
  26. <field name="model">res.partner</field>
  27. <field name="inherit_id" ref="base.view_partner_tree"/>
  28. <field name="arch" type="xml">
  29. <field name="email" position="after">
  30. <field name="job_position"/>
  31. </field>
  32. </field>
  33. </record>
  34. -->
  35. <record model="ir.ui.view" id="view_res_partner_filter_job_position">
  36. <field name="name">Partner search with job position</field>
  37. <field name="model">res.partner</field>
  38. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  39. <field name="arch" type="xml">
  40. <field name="category_id" position="after">
  41. <field name="job_position"/>
  42. </field>
  43. <filter string="Salesperson" position="after">
  44. <filter string="Job position"
  45. domain="[('is_company','=', True)]"
  46. context="{'group_by': 'job_position'}"/>
  47. </filter>
  48. </field>
  49. </record>
  50. </data>
  51. </openerp>