diff options
Diffstat (limited to 'indoteknik_custom/models/sourcing_job_order.py')
| -rw-r--r-- | indoteknik_custom/models/sourcing_job_order.py | 5 |
1 files changed, 1 insertions, 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): |
