diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-27 10:57:24 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-27 10:57:24 +0700 |
| commit | 755f6efe380cbbdd05ba592f651ca87030a22143 (patch) | |
| tree | 96734fa0ad5a9c18f162f9e8a2c087e4398176eb /indoteknik_custom/models/purchase_order.py | |
| parent | 8a7315b6e8ba391f1260bc994df00107d52623c3 (diff) | |
fix api shipment group
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 36c4c7b9..2513f8fd 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -849,8 +849,8 @@ class PurchaseOrder(models.Model): ) if not self.from_apo: - if not self.matches_so and not self.env.user.has_group('indoteknik_custom.group_role_merchandiser') and not self.env.user.is_leader: - raise UserError("Tidak ada link dengan SO, harus approval Merchandise") + if not self.matches_so and not self.env.user.id == 21: + raise UserError("Tidak ada link dengan SO, harus approval Rafly") send_email = False if not self.not_update_purchasepricelist: |
