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.7 KiB

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_capital">
  5. <field name="name">Partner form with capital info</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="capital_country" placeholder="Capital country"
  11. attrs="{'invisible': [('is_company', '=', False)]}"
  12. options='{"no_open": True}'/>
  13. <field name="capital_registered"
  14. attrs="{'invisible': [('is_company', '=', False)]}"/>
  15. <field name="turnover_range" placeholder="Turnover range"
  16. attrs="{'invisible': [('is_company', '=', False)]}"
  17. options='{"no_open": True}'/>
  18. <field name="turnover_number"
  19. attrs="{'invisible': [('is_company', '=', False)]}"/>
  20. </field>
  21. </field>
  22. </record>
  23. <record model="ir.ui.view" id="view_res_partner_filter_capital">
  24. <field name="name">Partner search with capital</field>
  25. <field name="model">res.partner</field>
  26. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  27. <field name="arch" type="xml">
  28. <filter string="Salesperson" position="after">
  29. <filter string="Capital country"
  30. domain="[('is_company', '=', True)]"
  31. context="{'group_by': 'capital_country'}"/>
  32. <filter string="Turnover"
  33. domain="[('is_company', '=', True)]"
  34. context="{'group_by': 'turnover_number'}"/>
  35. </filter>
  36. </field>
  37. </record>
  38. </data>
  39. </openerp>