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.

35 lines
1.2 KiB

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_employees">
  5. <field name="name">Partner form with employees</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. <xpath expr="/form/sheet/group">
  10. <group name="employee_quantity"
  11. string="Employee quantity"
  12. attrs="{'invisible': [('is_company', '=', False)]}">
  13. <field name="employee_quantity"/>
  14. <field name="employee_quantity_range_id"/>
  15. </group>
  16. </xpath>
  17. </field>
  18. </record>
  19. <record model="ir.ui.view" id="view_res_partner_filter_employees">
  20. <field name="name">Partner search with employees</field>
  21. <field name="model">res.partner</field>
  22. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  23. <field name="arch" type="xml">
  24. <filter string="Salesperson" position="after">
  25. <filter string="Employee Quantity"
  26. domain="[('is_company','=', True)]"
  27. context="{'group_by': 'employee_quantity_range_id'}"/>
  28. </filter>
  29. </field>
  30. </record>
  31. </data>
  32. </openerp>