summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order_line.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-12-18 14:06:16 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-12-18 14:06:16 +0700
commit955f0eff6fb1917c3cf0fde8ee6994ee43148732 (patch)
treee29ed9a9ee3a1a6a91fac4661778adad74069736 /indoteknik_custom/models/purchase_order_line.py
parent8fc9eddc57f76f62c3efaa70c9a3aee8be1911fa (diff)
change field suggest po
Diffstat (limited to 'indoteknik_custom/models/purchase_order_line.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order_line.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/indoteknik_custom/models/purchase_order_line.py b/indoteknik_custom/models/purchase_order_line.py
index 5e1c7b5f..f1c20106 100755
--- a/indoteknik_custom/models/purchase_order_line.py
+++ b/indoteknik_custom/models/purchase_order_line.py
@@ -27,15 +27,14 @@ class PurchaseOrderLine(models.Model):
qty_incoming = fields.Float('Qty Incoming', compute='_compute_qty_stock')
qty_outgoing = fields.Float('Qty Outgoing', compute='_compute_qty_stock')
qty_available_store = fields.Float(string='Available')
- suggest = fields.Char(string='Suggest', compute='_compute_suggest_purchasing')
+ suggest = fields.Char(string='Suggest')
price_vendor = fields.Float(string='Price Vendor', compute='compute_price_vendor')
so_line_id = fields.Many2one('sale.order.line', string='ID SO Line')
indent = fields.Boolean(string='Indent', help='centang ini jika barang indent')
is_ltc = fields.Boolean(string='Sudah di LTC', default=False, help='centang ini jika barang sudah di LTC')
note = fields.Char(string='Note')
- def _compute_suggest_purchasing(self):
- print(1)
+ def suggest_purchasing(self):
for line in self:
if line.qty_available < 0:
line.suggest = 'harus beli'