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.

40 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="view_partner_form_job_position">
  4. <field name="name">Partner form with job position</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_form"/>
  7. <field name="arch" type="xml">
  8. <field name="function" position="before">
  9. <field name="job_position_id"
  10. attrs="{'invisible': [('is_company','=', True)]}"
  11. options='{"no_open": True}'/>
  12. </field>
  13. <xpath expr="//field[@name='child_ids']/form//field[@name='function']"
  14. position="before">
  15. <field name="job_position_id"
  16. attrs="{'invisible': [('is_company','=', True)]}"
  17. options='{"no_open": True}'/>
  18. </xpath>
  19. </field>
  20. </record>
  21. <record model="ir.ui.view" id="view_res_partner_filter_job_position">
  22. <field name="name">Partner search with job position</field>
  23. <field name="model">res.partner</field>
  24. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  25. <field name="arch" type="xml">
  26. <field name="category_id" position="after">
  27. <field name="job_position_id"/>
  28. </field>
  29. <filter name="salesperson" position="after">
  30. <filter name="job_position"
  31. string="Job position"
  32. domain="[('is_company','=', True)]"
  33. context="{'group_by': 'job_position_id'}"/>
  34. </filter>
  35. </field>
  36. </record>
  37. </odoo>