From 89e664cd76c5687903275e8c1dd4c59da7e83be7 Mon Sep 17 00:00:00 2001 From: HafidBuroiroh Date: Sat, 14 Mar 2026 11:28:13 +0700 Subject: fix error purchase price --- indoteknik_custom/models/sourcing_job_order.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/indoteknik_custom/models/sourcing_job_order.py b/indoteknik_custom/models/sourcing_job_order.py index 019b6b08..03e7d2e4 100644 --- a/indoteknik_custom/models/sourcing_job_order.py +++ b/indoteknik_custom/models/sourcing_job_order.py @@ -858,10 +858,7 @@ class SourcingJobOrderLine(models.Model): 'human_last_update': jakarta_tz, } - if not purchase_price: - PurchasePricelist.create(pricelist_vals) - - if product.categ_id and product.categ_id.id != 34: + if not purchase_price and product.categ_id and product.categ_id.id != 34: PurchasePricelist.create(pricelist_vals) elif purchase_price.product_price != (rec.price or 0): -- cgit v1.2.3