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:14 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-08-16 04:51:14 +0000
commita73c0825a264fc002e7496b07f238f79efd93086 (patch)
tree04b170cc3860f82d936b5dcb83451b963c524f95 /indoteknik_custom/models/purchase_order.py
parent3a954e59343d2d3a3df5436297f7007008ae62e8 (diff)
parent021f7ccc9f7b026e330352d34e695993116bdd99 (diff)
Merged in production (pull request #98)
Production
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