summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-07-09 16:09:35 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-07-09 16:09:35 +0700
commit591c0f5f424376df11bae6f52944d09627b129b4 (patch)
tree039da00f44d2c78e5ff9140eec32ab42b1d43a87 /indoteknik_custom/models
parenta8e8d2b14b4d039c5974250de96b84f6764d1bb6 (diff)
add related field from stock picking to sale order
Diffstat (limited to 'indoteknik_custom/models')
-rwxr-xr-xindoteknik_custom/models/sale_order.py2
1 files changed, 2 insertions, 0 deletions
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')