summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-11 08:52:46 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-11 08:52:46 +0700
commit503fb1e0adb8eca300133bde10a4bbd8e16d2cb5 (patch)
tree89fd8d8d4f3dade9c76c6863bf04ad7b3eef4a05 /indoteknik_custom
parentdf0467f8e493840f3013bc58ca26fc6d98793c95 (diff)
(andri) buat page maps pada contact
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/views/res_partner.xml17
1 files changed, 10 insertions, 7 deletions
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml
index c23500c8..5ca61834 100644
--- a/indoteknik_custom/views/res_partner.xml
+++ b/indoteknik_custom/views/res_partner.xml
@@ -65,13 +65,16 @@
<group name="purchase" position="inside">
<field name="leadtime"/>
</group>
- <field name="vat" position="before">
- <field name="latitude"/>
- <field name="longtitude"/>
-
- <button name="geocode_address" type="object" string="Cari Lokasi dari Alamat" class="btn btn-primary"/>
- <field name="map_view" widget="openstreetmap"/>
- </field>
+ <xpath expr="//notebook/page[@name='contact_addresses']" position="before">
+ <page string="Lokasi Peta" name="map_location" autofocus="autofocus">
+ <group>
+ <field name="latitude" readonly="1"/>
+ <field name="longtitude" readonly="1"/>
+ <button name="geocode_address" type="object" string="Dapatkan PinPoint Lokasi" class="btn btn-primary"/>
+ <field name="map_view" widget="openstreetmap"/>
+ </group>
+ </page>
+ </xpath>
<field name="vat" position="after">
<field name="email_finance" widget="email"/>
<field name="email_sales" widget="email"/>