diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-21 14:23:06 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-21 14:23:06 +0700 |
| commit | 6805a54ddeb69e64b1ba5f2d0dd23158aeea29df (patch) | |
| tree | 041dd44688498d5f37a1974ae309a6e218ad1d80 | |
| parent | 4dd6ef58e2c60df7cb25b65ae6ad23d3bee2ebc1 (diff) | |
fix bug
| -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 4dc26d74..8e283c45 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -963,7 +963,7 @@ class PurchaseOrder(models.Model): # ) if not self.from_apo: - if not self.matches_so and not self.env.user.is_purchasing_manager and not self.env.user.is_leader: + if not self.matches_so and not self.env.user.is_purchasing_manager and not self.env.user.is_leader and not self.manufacturing_id: raise UserError("Tidak ada link dengan SO, harus di confirm oleh Purchasing Manager") send_email = False |
