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.

41 lines
1.5 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
  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_id"
  11. attrs="{'invisible': [('is_company','=', True)]}"
  12. options='{"no_open": True}'/>
  13. </field>
  14. <xpath expr="//field[@name='child_ids']/form//field[@name='function']"
  15. position="before">
  16. <field name="job_position_id"
  17. attrs="{'invisible': [('is_company','=', True)]}"
  18. options='{"no_open": True}'/>
  19. </xpath>
  20. </field>
  21. </record>
  22. <record model="ir.ui.view" id="view_res_partner_filter_job_position">
  23. <field name="name">Partner search with job position</field>
  24. <field name="model">res.partner</field>
  25. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  26. <field name="arch" type="xml">
  27. <field name="category_id" position="after">
  28. <field name="job_position_id"/>
  29. </field>
  30. <filter string="Salesperson" position="after">
  31. <filter string="Job position"
  32. domain="[('is_company','=', True)]"
  33. context="{'group_by': 'job_position_id'}"/>
  34. </filter>
  35. </field>
  36. </record>
  37. </data>
  38. </openerp>