diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-06-10 15:47:32 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-06-10 15:47:32 +0700 |
| commit | df0467f8e493840f3013bc58ca26fc6d98793c95 (patch) | |
| tree | 05a01e1dee6bf866caaecfb5651f849fcf37cf86 /indoteknik_custom/views/res_partner.xml | |
| parent | 5ca33915f1e3d052cfa989163d43a15dbc9ddec9 (diff) | |
(andri) add openstreetmaps pada contact
Diffstat (limited to 'indoteknik_custom/views/res_partner.xml')
| -rw-r--r-- | indoteknik_custom/views/res_partner.xml | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml index f4c1be31..c23500c8 100644 --- a/indoteknik_custom/views/res_partner.xml +++ b/indoteknik_custom/views/res_partner.xml @@ -70,24 +70,7 @@ <field name="longtitude"/> <button name="geocode_address" type="object" string="Cari Lokasi dari Alamat" class="btn btn-primary"/> - - <separator string="Map Lokasi"/> - <div style="height: 400px;"> - <t t-if="record.latitude.value and record.longtitude.value"> - <t t-set="google_maps_api_key" t-value="request.env['ir.config_parameter'].sudo().get_param('google.maps.api_key')"/> - <iframe - t-att-src="'https://www.google.com/maps/embed/v1/place?key=' + google_maps_api_key + '&q=' + str(record.latitude.value) + ',' + str(record.longtitude.value)" - width="100%" - height="400" - style="border:0;" - allowfullscreen="" - loading="lazy" - ></iframe> - </t> - <t t-else=""> - <p>Isi alamat lalu klik "Cari Lokasi dari Alamat" untuk menampilkan peta.</p> - </t> - </div> + <field name="map_view" widget="openstreetmap"/> </field> <field name="vat" position="after"> <field name="email_finance" widget="email"/> |
