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.

33 lines
1.2 KiB

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. <field name="phone" position="before">
  10. <field name="employees_range" placeholder="Employees range"
  11. attrs="{'invisible': [('is_company', '=', False)]}"
  12. options='{"no_open": True}'/>
  13. <field name="employees_number"
  14. attrs="{'invisible': [('is_company', '=', False)]}"/>
  15. </field>
  16. </field>
  17. </record>
  18. <record model="ir.ui.view" id="view_res_partner_filter_employees">
  19. <field name="name">Partner search with employees</field>
  20. <field name="model">res.partner</field>
  21. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  22. <field name="arch" type="xml">
  23. <filter string="Salesperson" position="after">
  24. <filter string="Emplooyees"
  25. domain="[('is_company','=', True)]"
  26. context="{'group_by': 'employees_range'}"/>
  27. </filter>
  28. </field>
  29. </record>
  30. </data>
  31. </openerp>