mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-15 02:32:04 +00:00
29 lines
1.0 KiB
XML
29 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
© 2015-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
|
|
<flectra>
|
|
|
|
<!-- Inherit partner view to add 'Map' and 'Route Map' buttons -->
|
|
<record id="view_partner_form" model="ir.ui.view">
|
|
<field name="name">map.button.res.partner.form</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
<button class="oe_inline oe_stat_button"
|
|
name="open_map" type="object" string="Map"
|
|
attrs="{'invisible': [('city', '=', False)]}"
|
|
icon="fa-map-marker"/>
|
|
<button class="oe_inline oe_stat_button"
|
|
name="open_route_map" type="object" string="Route Map"
|
|
attrs="{'invisible': [('city', '=', False)]}"
|
|
icon="fa-car"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</flectra>
|