From 8cb1d5045542d120a65a610b6f9bb4b99c43adf4 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Mon, 20 May 2024 15:43:01 +0700 Subject: add column ged api --- indoteknik_custom/models/ged.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/indoteknik_custom/models/ged.py b/indoteknik_custom/models/ged.py index 832fb023..53bbe184 100644 --- a/indoteknik_custom/models/ged.py +++ b/indoteknik_custom/models/ged.py @@ -37,6 +37,13 @@ class GedTracking(models.Model): kg = fields.Char(string='KG') origin = fields.Char(string='Origin') destination = fields.Char(string='Destination') + receiver_name = fields.Char(string='Receiver Name') + receiver_relationship = fields.Char(string='Receiver Relationship') + delivered_date = fields.Char(string='Delivered Date') + photo_pod = fields.Char(string='Photo POD') + photo_signature = fields.Char(string='Photo Signature') + photo_location = fields.Char(string='Photo Location') + photo_receiver = fields.Char(string='Photo Receiver') last_user_input = fields.Char(string='Last User Input') last_created_at = fields.Char(string='Last Created At') last_location = fields.Char(string='Last Location') @@ -136,6 +143,13 @@ class GedApi(models.Model): kg = info_awb['kg'] origin = info_awb['origin'] destination = info_awb['destination'] + receiver_name = info_awb['receiver_name'] + receiver_relationship = info_awb['receiver_relationship'] + delivered_date = info_awb['delivered_date'] + photo_pod = info_awb['photo_pod'] + photo_signature = info_awb['photo_signature'] + photo_location = info_awb['photo_location'] + photo_receiver = info_awb['photo_receiver'] last_user_input = last_status['user_input'] last_created_at = last_status['created_at'] last_location = last_status['location'] @@ -162,6 +176,13 @@ class GedApi(models.Model): 'kg': kg, 'origin': origin, 'destination': destination, + 'receiver_name': receiver_name, + 'receiver_relationship': receiver_relationship, + 'delivered_date': delivered_date, + 'photo_pod': photo_pod, + 'photo_signature': photo_signature, + 'photo_location': photo_location, + 'photo_receiver': photo_receiver, 'last_user_input': last_user_input, 'last_created_at': last_created_at, 'last_location': last_location, -- cgit v1.2.3