From 266f1cee69959dc47dc3e66e0448a7c5c09f9e1a Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 23 Jan 2024 10:14:55 +0700 Subject: add vendor to sale monitoring detail --- indoteknik_custom/models/sale_monitoring_detail.py | 1 + indoteknik_custom/views/sale_monitoring_detail.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/indoteknik_custom/models/sale_monitoring_detail.py b/indoteknik_custom/models/sale_monitoring_detail.py index 43b0b063..196a09cd 100755 --- a/indoteknik_custom/models/sale_monitoring_detail.py +++ b/indoteknik_custom/models/sale_monitoring_detail.py @@ -23,6 +23,7 @@ class SaleMonitoringDetail(models.Model): status = fields.Char(string="Status") qty_reserved = fields.Integer(string="Qty Reserved") note = fields.Char(string="Note") + vendor_id = fields.Many2one('res.partner', string='Vendor', related='sale_order_id.order_line.vendor_id') def init(self): tools.drop_view_if_exists(self.env.cr, self._table) diff --git a/indoteknik_custom/views/sale_monitoring_detail.xml b/indoteknik_custom/views/sale_monitoring_detail.xml index ce5b8e9b..e1363894 100755 --- a/indoteknik_custom/views/sale_monitoring_detail.xml +++ b/indoteknik_custom/views/sale_monitoring_detail.xml @@ -10,6 +10,7 @@ + @@ -40,6 +41,7 @@ +