diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-26 10:23:38 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-26 10:23:38 +0700 |
| commit | ed1cc37856380c439a9e180bea4e9ec53f8ee989 (patch) | |
| tree | eb0ca39c91470a2a52db2065602a566b9c12cdf6 | |
| parent | 8727296e3bd034d66a026557d7d8e242a3a153e9 (diff) | |
cr confirm po
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
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): |
