summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-08-16 04:51:39 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-08-16 04:51:39 +0000
commitb0dd1bde531a90a867448c03ec08b72cc70f0053 (patch)
tree0ec22360367159e8b928b030351d6a8b53f3ada4 /indoteknik_custom/models/purchase_order.py
parent9f8664c33429e41c6133ba2b325662245ffbc92d (diff)
parenta73c0825a264fc002e7496b07f238f79efd93086 (diff)
Merged in refactor (pull request #99)
Refactor
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index d73f9037..9e851ef9 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -196,7 +196,7 @@ class PurchaseOrder(models.Model):
for line in self.order_line:
if not line.product_id.purchase_ok:
raise UserError("Terdapat barang yang tidak bisa diproses")
- if line.price_vendor != 0 and line.price_unit != line.price_vendor:
+ if line.price_unit != line.price_vendor:
send_email = True
break