summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-11-18 10:57:21 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-11-18 10:57:21 +0700
commit34c6611b059cf6ea79bb78e359b973719848f09b (patch)
tree0bb80fea7318705f553e61cb3259b3850bfb4abe
parentd5cef4f36b8f6e74d536d26fa01a3b68b5e57ba8 (diff)
fix bug vendor approval
-rwxr-xr-xindoteknik_custom/models/sale_order.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 21f83521..3d91ba91 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -748,7 +748,7 @@ class SaleOrder(models.Model):
raise UserError("Salesperson sudah tidak aktif, mohon diisi yang benar pada data SO dan Contact")
def sale_order_approve(self):
- if self.validate_different_vendor() and not self.vendor_approval and not self.vendor_approval_id:
+ if self.validate_different_vendor() and not self.vendor_approval:
return self._create_notification_action('Notification', 'Terdapat Vendor yang berbeda dengan MD Vendor')
self.check_due()
@@ -925,7 +925,7 @@ class SaleOrder(models.Model):
def action_confirm(self):
for order in self:
- if self.validate_different_vendor() and not self.vendor_approval and not self.vendor_approval_id:
+ if self.validate_different_vendor() and not self.vendor_approval:
return self._create_notification_action('Notification', 'Terdapat Vendor yang berbeda dengan MD Vendor')
order.check_data_real_delivery_address()