summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-08-26 10:23:38 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-08-26 10:23:38 +0700
commited1cc37856380c439a9e180bea4e9ec53f8ee989 (patch)
treeeb0ca39c91470a2a52db2065602a566b9c12cdf6
parent8727296e3bd034d66a026557d7d8e242a3a153e9 (diff)
cr confirm po
-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 2517d72c..3a11ab1e 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -492,7 +492,7 @@ class PurchaseOrder(models.Model):
def check_data_vendor(self):
vendor = self.partner_id
- if not vendor.email_finance and vendor.email_sales:
+ if not vendor.email_finance or not vendor.email_sales:
raise UserError("Email Finance dan Email Sales pada vendor harus diisi")
def unlink_purchasing_job_state(self):