summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-07-11 11:52:39 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-07-11 11:52:39 +0700
commit66e8844d3a9c327229d312aa6319a245899ad83a (patch)
treed46931f8d396ac8d658ad74216eaf001f7b43932
parentd0751f51877b0c339943a11a5693b6ced535111e (diff)
refactor code automatic purchase
-rw-r--r--indoteknik_custom/models/automatic_purchase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py
index bc65f8e2..7067141e 100644
--- a/indoteknik_custom/models/automatic_purchase.py
+++ b/indoteknik_custom/models/automatic_purchase.py
@@ -74,7 +74,7 @@ class AutomaticPurchase(models.Model):
}
new_line = self.env['purchase.order.line'].create([param_line])
if qty_available > new_line.product_qty:
- suggest = 'masih cukup'
+ new_line.suggest = 'masih cukup'
product.current_po_id = new_po.id
product.current_po_line_id = new_line.id
_logger.info('Automatic Create PO Line %s' % product.product_id.name)