From b6a0434a4ff9fe580469cf79c30816697e36e48e Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 21 May 2024 12:06:46 +0700 Subject: add standalone button for get tracking awb in dunning run --- indoteknik_custom/__manifest__.py | 1 + indoteknik_custom/models/ged.py | 3 +++ indoteknik_custom/views/dunning_run_ged.xml | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 indoteknik_custom/views/dunning_run_ged.xml diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py index 68695b0e..fa0188e6 100755 --- a/indoteknik_custom/__manifest__.py +++ b/indoteknik_custom/__manifest__.py @@ -124,6 +124,7 @@ 'views/res_partner_site.xml', 'views/apps_stored.xml', 'views/ged_tracking.xml', + 'views/dunning_run_ged.xml', 'report/report.xml', 'report/report_banner_banner.xml', 'report/report_banner_banner2.xml', diff --git a/indoteknik_custom/models/ged.py b/indoteknik_custom/models/ged.py index 2de88a8d..e1881c45 100644 --- a/indoteknik_custom/models/ged.py +++ b/indoteknik_custom/models/ged.py @@ -280,3 +280,6 @@ class DunningRunGed(models.Model): dunning.date_terima_tukar_faktur = ged_tracking.delivered_date dunning.copy_date_faktur() return + + def get_tracking_history_by_awb(self): + self._get_tracking_history(self.resi_tukar_faktur) \ No newline at end of file diff --git a/indoteknik_custom/views/dunning_run_ged.xml b/indoteknik_custom/views/dunning_run_ged.xml new file mode 100644 index 00000000..5b8c6a3c --- /dev/null +++ b/indoteknik_custom/views/dunning_run_ged.xml @@ -0,0 +1,19 @@ + + + + + Dunning Run GED + dunning.run + + + +