diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-05-20 15:43:01 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-05-20 15:43:01 +0700 |
| commit | 8cb1d5045542d120a65a610b6f9bb4b99c43adf4 (patch) | |
| tree | b29f1f52d0f28c5e2bf3ba287b6f187d3ffabffd | |
| parent | 49566a406160fca5cef44f864c228ae2e8e3f1fb (diff) | |
add column ged api
| -rw-r--r-- | indoteknik_custom/models/ged.py | 21 |
1 files changed, 21 insertions, 0 deletions
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, |
