From 135d9c2643a1f588494cddec7ca4d1fe2165b82d Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Fri, 2 Jan 2026 16:48:17 +0700 Subject: push benerin harga --- fixco_custom/models/purchasing_job.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fixco_custom') diff --git a/fixco_custom/models/purchasing_job.py b/fixco_custom/models/purchasing_job.py index 0b70d19..5aa09d8 100644 --- a/fixco_custom/models/purchasing_job.py +++ b/fixco_custom/models/purchasing_job.py @@ -61,9 +61,9 @@ class PurchasingJob(models.Model): qty_purchase = max(qty_purchase, 0.0) - pricelist = self.env['purchase.pricelist'].search([ - ('product_id', '=', stock.product_id.id), - ('vendor_id', '=', stock.vendor_id.id) + pricelist = self.env['product.supplierinfo'].search([ + ('product_tmpl_id', '=', stock.product_id.product_tmpl_id.id), + ('name', '=', stock.vendor_id.id) ], limit=1) price = pricelist.price if pricelist else 0.0 -- cgit v1.2.3