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.

31 lines
1.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_country_search" model="ir.ui.view">
  4. <field name="name">res.country.search</field>
  5. <field name="model">res.country</field>
  6. <field name="arch" type="xml">
  7. <search string="Country">
  8. <field name="name"/>
  9. <field name="code"/>
  10. </search>
  11. </field>
  12. </record>
  13. <record id="view_res_country_city_better_zip_form" model="ir.ui.view">
  14. <field name="model">res.country</field>
  15. <field name="inherit_id" ref="base.view_country_form"/>
  16. <field name="arch" type="xml">
  17. <xpath expr="//div[hasclass('oe_button_box')]" position="inside">
  18. <button name="%(action_zip_tree)d"
  19. class="oe_stat_button"
  20. icon="fa-globe"
  21. type="action"
  22. context="{'default_country_id': active_id, 'search_default_country_id': active_id}"
  23. string="Zips">
  24. </button>
  25. </xpath>
  26. </field>
  27. </record>
  28. </odoo>