From 591c0f5f424376df11bae6f52944d09627b129b4 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 9 Jul 2024 16:09:35 +0700 Subject: add related field from stock picking to sale order --- indoteknik_custom/models/sale_order.py | 2 ++ indoteknik_custom/views/sale_order.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 4a40bccc..532e5b6c 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -101,6 +101,8 @@ class SaleOrder(models.Model): ], string='Web Approval', copy=False) compute_fullfillment = fields.Boolean(string='Compute Fullfillment', compute="_compute_fullfillment") note_ekspedisi = fields.Char(string="Note Ekspedisi") + date_kirim_ril = fields.Datetime(string='Tanggal Kirim di SJ', related='picking_ids.date_doc_kirim', copy=False) + date_driver_departure = fields.Datetime(string='Tanggal Kirim di SJ', related='picking_ids.driver_arrival_date', copy=False) def open_form_multi_create_uang_muka(self): action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_sale_order_multi_uangmuka') diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index ead6bc5c..283c1c24 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -223,6 +223,8 @@ + + -- cgit v1.2.3