diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-12-19 09:32:39 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-12-19 09:32:39 +0700 |
| commit | 034229b8f7d6f9ac8ad5c1562774966a66898ec9 (patch) | |
| tree | cb9f36d6e70313607c708b818cc7c187489971dd /indoteknik_custom/models/purchase_order_line.py | |
| parent | e2086bc4f96391260fb3430537feddbc25bdde40 (diff) | |
| parent | 955f0eff6fb1917c3cf0fde8ee6994ee43148732 (diff) | |
Merge remote-tracking branch 'origin/production' into purchasing-job
Diffstat (limited to 'indoteknik_custom/models/purchase_order_line.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order_line.py | 5 |
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' |
