From bb3c3c6cac4382220ae8a521e8c2162a5fe3d3e9 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Fri, 6 Oct 2023 14:21:38 +0700 Subject: add note to sale monitoring --- indoteknik_custom/models/sale_monitoring.py | 1 + indoteknik_custom/views/sale_monitoring.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/indoteknik_custom/models/sale_monitoring.py b/indoteknik_custom/models/sale_monitoring.py index e79ff9ab..587be436 100755 --- a/indoteknik_custom/models/sale_monitoring.py +++ b/indoteknik_custom/models/sale_monitoring.py @@ -21,6 +21,7 @@ class SaleMonitoring(models.Model): status = fields.Char(string="Status") po_number = fields.Char(string="PO Number") qty_reserved = fields.Integer(string="Qty Reserved") + note = fields.Char(string="Note", related='sale_order_id.order_line.note_procurement') def init(self): tools.drop_view_if_exists(self.env.cr, self._table) diff --git a/indoteknik_custom/views/sale_monitoring.xml b/indoteknik_custom/views/sale_monitoring.xml index 0a9a5aa5..641eb8fb 100755 --- a/indoteknik_custom/views/sale_monitoring.xml +++ b/indoteknik_custom/views/sale_monitoring.xml @@ -25,6 +25,7 @@ decoration-success="status == 'Siap kirim'" decoration-info="status == 'Delivered' or status == 'Invoiced'" /> + @@ -48,6 +49,7 @@ decoration-info="status == 'Delivered' or status == 'Invoiced'" /> + -- cgit v1.2.3