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

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--
  3. Copyright 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
  15. class="oe_stat_button"
  16. name="open_map"
  17. type="object"
  18. string="Map"
  19. attrs="{'invisible': [('city', '=', False)]}"
  20. icon="fa-map-marker"
  21. />
  22. <button
  23. class="oe_stat_button"
  24. name="open_route_map"
  25. type="object"
  26. string="Route Map"
  27. attrs="{'invisible': [('city', '=', False)]}"
  28. icon="fa-car"
  29. />
  30. </xpath>
  31. </field>
  32. </record>
  33. </odoo>