summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-12-14 11:32:25 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-12-14 11:32:25 +0700
commitbb2a3647ac1f5885bc6481ce10bfcd91813bfe81 (patch)
tree8a4c56c0141611e08e2ad42df00b1106c9569644 /indoteknik_custom/models/purchase_order.py
parente6770e132602c094197fbd6d9becc2bbc9c2d8e0 (diff)
change suggest to virtual column
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index f95e01c9..177a4744 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -211,16 +211,16 @@ class PurchaseOrder(models.Model):
if order_line.product_id.id and order_line.product_id.id not in products_exception:
qty_available = order_line.product_id.qty_onhand_bandengan + order_line.product_id.qty_incoming_bandengan - order_line.product_id.outgoing_qty
- suggest = 'harus beli'
- if qty_available > order_line.product_qty:
- suggest = 'masih cukup'
+ # suggest = 'harus beli'
+ # if qty_available > order_line.product_qty:
+ # suggest = 'masih cukup'
values = {
'order_id': self.id,
'product_id': order_line.product_id.id,
'name': order_line.product_id.display_name,
'product_qty': order_line.product_qty,
'qty_available_store': qty_available,
- 'suggest': suggest,
+ # 'suggest': suggest,
'so_line_id': order_line.id,
}
self.order_line.create(values)