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. <!--
  3. Copyright (C) 2015 Akretion France (www.akretion.com)
  4. @author: Alexis de Lattre <alexis.delattre@akretion.com>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <openerp>
  8. <data>
  9. <!-- Inherit partner view to add 'Map' button -->
  10. <record id="view_partner_form" model="ir.ui.view">
  11. <field name="name">map.button.res.partner.form</field>
  12. <field name="model">res.partner</field>
  13. <field name="inherit_id" ref="base.view_partner_form"/>
  14. <field name="arch" type="xml">
  15. <xpath expr="//div[@name='button_box']" position="inside">
  16. <button class="oe_inline oe_stat_button"
  17. name="open_map" type="object" string="Map"
  18. attrs="{'invisible': [('city', '=', False)]}"
  19. icon="fa-map-marker"/>
  20. <button class="oe_inline oe_stat_button"
  21. name="open_route_map" type="object" string="Route Map"
  22. attrs="{'invisible': [('city', '=', False)]}"
  23. icon="fa-car"/>
  24. </xpath>
  25. </field>
  26. </record>
  27. </data>
  28. </openerp>