34 lines
1.6 KiB
XML
34 lines
1.6 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<odoo>
|
||
|
<record id="view_crm_partner_geo_form" model="ir.ui.view">
|
||
|
<field name="name">res.partner.geolocation.inherit</field>
|
||
|
<field name="model">res.partner</field>
|
||
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath expr="//notebook[last()]" position="inside">
|
||
|
<page string="Partner Assignation" name="geo_location">
|
||
|
<!-- something to do here -->
|
||
|
<group colspan="2" col="2">
|
||
|
<separator string="Geolocation" colspan="2"/>
|
||
|
<button
|
||
|
string="Geolocate"
|
||
|
name="geo_localize"
|
||
|
colspan="2"
|
||
|
icon="fa-check"
|
||
|
type="object"/>
|
||
|
<div>
|
||
|
<span class="oe_inline"> ( On </span>
|
||
|
<field name="date_localization" nolabel="1" class="oe_inline"/>
|
||
|
<span> : Lat : </span>
|
||
|
<field name="partner_latitude" nolabel="1" class="oe_inline"/>
|
||
|
<span> ; Long: </span>
|
||
|
<field name="partner_longitude" nolabel="1" class="oe_inline"/>
|
||
|
<span>) </span>
|
||
|
</div>
|
||
|
</group>
|
||
|
</page>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
</odoo>
|