summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-12 15:07:21 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-12 15:07:21 +0700
commitbe7c601f44c3fab282dc91559a62a024d09e3f73 (patch)
tree6670e5fd3d0ead3185c08eeb250268929ef8e5c1
parent4add96b5532394b382970ca0fa639d0977de23c2 (diff)
(andri) hapus validasi negara pada pinpoint & hapus autofokus page pinpoin
-rw-r--r--indoteknik_custom/models/res_partner.py2
-rw-r--r--indoteknik_custom/views/res_partner.xml2
2 files changed, 1 insertions, 3 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py
index a15398c7..eeb8b67d 100644
--- a/indoteknik_custom/models/res_partner.py
+++ b/indoteknik_custom/models/res_partner.py
@@ -545,7 +545,6 @@ class ResPartner(models.Model):
'Kota': rec.kota_id.name if rec.kota_id else '',
'Kode Pos': rec.zip,
'Provinsi': rec.state_id.name if rec.state_id else '',
- 'Negara': rec.country_id.name if rec.country_id else '',
}
# Cek jika ada yang kosong
@@ -563,7 +562,6 @@ class ResPartner(models.Model):
required_fields['Kota'],
required_fields['Kode Pos'],
required_fields['Provinsi'],
- required_fields['Negara'],
])
# Ambil API Key
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml
index 6acfeaa0..85ee5ef0 100644
--- a/indoteknik_custom/views/res_partner.xml
+++ b/indoteknik_custom/views/res_partner.xml
@@ -66,7 +66,7 @@
<field name="leadtime"/>
</group>
<xpath expr="//notebook/page[@name='contact_addresses']" position="before">
- <page string="Pin Point Location" name="map_location" autofocus="autofocus">
+ <page string="Pin Point Location" name="map_location">
<group>
<button name="geocode_address" type="object" string="Get Pin Point Location" class="btn btn-primary"/>
</group>