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
  19. name="%(action_zip_tree)d"
  20. class="oe_stat_button"
  21. icon="fa-globe"
  22. type="action"
  23. context="{'default_country_id': active_id, 'search_default_country_id': active_id}"
  24. string="Zips"
  25. >
  26. </button>
  27. </xpath>
  28. </field>
  29. </record>
  30. </odoo>