diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-22 08:44:18 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-22 08:44:18 +0700 |
| commit | 92187628f1971ba1f4ee3283cae94090ac4c1e8a (patch) | |
| tree | be0d95e890acadce47b18c4e46f2d9d6abf0f51e /indoteknik_custom/models/purchase_order.py | |
| parent | be0e6d6e04c85f0c2f77a490074dbeb7de98be0f (diff) | |
| parent | 946e4b76e8280daad6d4849e9ced33a54d770a84 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into tukar_guling
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
| -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 f98a37be..5b9e1acb 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -970,7 +970,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 or not self.sale_order_id) 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 |
