summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-10-06 14:21:38 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-10-06 14:21:38 +0700
commitbb3c3c6cac4382220ae8a521e8c2162a5fe3d3e9 (patch)
tree14454b2846b09ba3292afdd1ecca0a7681b90dca
parent5614f5f0fa0322089f17feeeeeb56af93bf76670 (diff)
add note to sale monitoring
-rwxr-xr-xindoteknik_custom/models/sale_monitoring.py1
-rwxr-xr-xindoteknik_custom/views/sale_monitoring.xml2
2 files changed, 3 insertions, 0 deletions
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'"
/>
+ <field name="note"/>
</tree>
</field>
</record>
@@ -48,6 +49,7 @@
decoration-info="status == 'Delivered' or status == 'Invoiced'"
/>
<field name="po_number"/>
+ <field name="note"/>
</group>
<group>
<field name="qty_so"/>