summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sourcing_job_order.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2026-03-14 04:28:59 +0000
committerIT Fixcomart <it@fixcomart.co.id>2026-03-14 04:28:59 +0000
commitaac0889a2d5acfe24e99794c554a13b76ecb9bd8 (patch)
tree2e519f04bb67a9c456de744d0f0f564803e41e5c /indoteknik_custom/models/sourcing_job_order.py
parent24888eca20489e07aa73206f1bc5e239b0252de1 (diff)
parent89e664cd76c5687903275e8c1dd4c59da7e83be7 (diff)
Merged in CR/Sourcing-Job (pull request #510)
<hafid> fix error purchase price
Diffstat (limited to 'indoteknik_custom/models/sourcing_job_order.py')
-rw-r--r--indoteknik_custom/models/sourcing_job_order.py5
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):