diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-10-06 14:21:38 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-10-06 14:21:38 +0700 |
| commit | bb3c3c6cac4382220ae8a521e8c2162a5fe3d3e9 (patch) | |
| tree | 14454b2846b09ba3292afdd1ecca0a7681b90dca | |
| parent | 5614f5f0fa0322089f17feeeeeb56af93bf76670 (diff) | |
add note to sale monitoring
| -rwxr-xr-x | indoteknik_custom/models/sale_monitoring.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_monitoring.xml | 2 |
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"/> |
