summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-14 10:26:28 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-14 10:26:28 +0700
commit1cecf60302ea02e250a97ca2dbc6679332988bc0 (patch)
tree55810202c5ff503083a780227539683d4065f591 /indoteknik_custom
parent3cb22a5059bfddc5f1d234e8c34e726debe9643d (diff)
(andri) add search pada gmaps contact
Diffstat (limited to 'indoteknik_custom')
-rwxr-xr-xindoteknik_custom/models/sale_order.py2
-rw-r--r--indoteknik_custom/views/res_partner.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index b9ca4a09..492153c0 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -890,7 +890,7 @@ class SaleOrder(models.Model):
total_weight = self._validate_for_shipping_estimate()
weight_gram = int(total_weight * 1000)
- if weight_gram <b 100:
+ if weight_gram < 100:
weight_gram = 100
value = int(self.amount_untaxed or sum(line.price_subtotal for line in self.order_line))
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml
index f739cf14..30b5ca36 100644
--- a/indoteknik_custom/views/res_partner.xml
+++ b/indoteknik_custom/views/res_partner.xml
@@ -74,7 +74,7 @@
<field name="map_view" widget="googlemap" nolabel="1"/>
</div>
<group>
- <field name="address_map"/>
+ <field name="address_map" readonly="1" force_save="1"/>
<field name="latitude" readonly="1" force_save="1"/>
<field name="longtitude" readonly="1" force_save="1"/>
</group>