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.

28 lines
1.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. © 2015-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <!-- Inherit partner view to add 'Map' and 'Route Map' buttons -->
  8. <record id="view_partner_form" model="ir.ui.view">
  9. <field name="name">map.button.res.partner.form</field>
  10. <field name="model">res.partner</field>
  11. <field name="inherit_id" ref="base.view_partner_form"/>
  12. <field name="arch" type="xml">
  13. <xpath expr="//div[@name='button_box']" position="inside">
  14. <button class="oe_inline oe_stat_button"
  15. name="open_map" type="object" string="Map"
  16. attrs="{'invisible': [('city', '=', False)]}"
  17. icon="fa-map-marker"/>
  18. <button class="oe_inline oe_stat_button"
  19. name="open_route_map" type="object" string="Route Map"
  20. attrs="{'invisible': [('city', '=', False)]}"
  21. icon="fa-car"/>
  22. </xpath>
  23. </field>
  24. </record>
  25. </odoo>