summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-05-20 16:36:23 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-05-20 16:36:23 +0700
commit777380f7346afc91189502c7f7943ce4b7b2e7f1 (patch)
tree1ae037fc44ed20814fc387fb927c4da18c411efb
parentb88662f880bfcc03d8de4c4e272054a35acf1e4a (diff)
revert column in dunning run related with ged
-rw-r--r--indoteknik_custom/models/dunning_run.py1
-rw-r--r--indoteknik_custom/models/ged.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/dunning_run.py b/indoteknik_custom/models/dunning_run.py
index 8f17fea6..4e04c03c 100644
--- a/indoteknik_custom/models/dunning_run.py
+++ b/indoteknik_custom/models/dunning_run.py
@@ -26,7 +26,6 @@ class DunningRun(models.Model):
shipper_faktur_id = fields.Many2one('delivery.carrier', string='Shipper Faktur')
is_validated = fields.Boolean(string='Validated')
notification = fields.Char(string='Notification')
- last_status_awb = fields.Char(string='Last Status AWB')
def copy_date_faktur(self):
if not self.is_validated:
diff --git a/indoteknik_custom/models/ged.py b/indoteknik_custom/models/ged.py
index b63caf86..10409130 100644
--- a/indoteknik_custom/models/ged.py
+++ b/indoteknik_custom/models/ged.py
@@ -233,6 +233,8 @@ class GedApi(models.Model):
class DunningRunGed(models.Model):
_inherit = 'dunning.run'
+ last_status_awb = fields.Char(string='Last Status AWB')
+
def _get_tracking_history(self, test_awb_number):
if test_awb_number:
query = [