summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/ged.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-05-21 09:21:33 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-05-21 09:21:33 +0700
commit8da2a7fe0de6f0abe4e35831e5e5560c20b5b627 (patch)
treeed6629bcf59841e8343f5a9c9590d0ff4878b1fc /indoteknik_custom/models/ged.py
parent92413dbeda6eebc85731536dd698bb155b09d7df (diff)
bug fix total margin so, forgot deduction of delivery amount
Diffstat (limited to 'indoteknik_custom/models/ged.py')
-rw-r--r--indoteknik_custom/models/ged.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/indoteknik_custom/models/ged.py b/indoteknik_custom/models/ged.py
index 9e6facc6..9ca426af 100644
--- a/indoteknik_custom/models/ged.py
+++ b/indoteknik_custom/models/ged.py
@@ -6,20 +6,20 @@ from odoo.exceptions import UserError
import json
#dev
-# url_token = 'https://stagging-api.ged.co.id/api/GetToken'
-# url_tracking = 'https://stagging-api.ged.co.id/api/TrackingAwb'
-# username = 'mandiri@gmail.co.id'
-# password = 'nPcWh8Up75ai5CW'
-# x_ged_key = 'Mandiriind'
-# x_ged_password = 'M4ndir1ind0n3si4ap1'
+url_token = 'https://stagging-api.ged.co.id/api/GetToken'
+url_tracking = 'https://stagging-api.ged.co.id/api/TrackingAwb'
+username = 'mandiri@gmail.co.id'
+password = 'nPcWh8Up75ai5CW'
+x_ged_key = 'Mandiriind'
+x_ged_password = 'M4ndir1ind0n3si4ap1'
#production
-url_token = 'https://gedapi.ged.co.id/api/GetToken'
-url_tracking = 'https://gedapi.ged.co.id/api/TrackingAwb'
-username = 'stephan@indoteknik.co.id'
-password = 'faCE2HFFKdzhvPW'
-x_ged_key = 'Indoteknikdotcom'
-x_ged_password = 'Ind0t3kn1kdotc0m4p1'
+# url_token = 'https://gedapi.ged.co.id/api/GetToken'
+# url_tracking = 'https://gedapi.ged.co.id/api/TrackingAwb'
+# username = 'stephan@indoteknik.co.id'
+# password = 'faCE2HFFKdzhvPW'
+# x_ged_key = 'Indoteknikdotcom'
+# x_ged_password = 'Ind0t3kn1kdotc0m4p1'
class GedTracking(models.Model):
_name = 'ged.tracking'
@@ -245,7 +245,7 @@ class DunningRunGed(models.Model):
else:
query = [
('last_status_awb', '!=', 'POD Return'),
- ('resi_tukar_faktur', '!=', False),
+ ('resi_tukar_faktur', '=', False),
('shipper_faktur_id', '=', 123)
]
dunnings = self.env['dunning.run'].search(query)