diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-10-17 10:01:28 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-10-17 10:01:28 +0700 |
| commit | 29ba7afb88c676623a24b8b45503df5fd8e5c3ad (patch) | |
| tree | 9624995459a566e70f678c6a1a42140ecb73428b | |
| parent | d67a78aa3532ebdb5b369ccd0b6f7a3ad6aa2b15 (diff) | |
cr approve 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 f8af409f..f924174a 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -511,7 +511,7 @@ class PurchaseOrder(models.Model): if self.total_percent_margin < self.total_so_percent_margin and not self.env.user.has_group('indoteknik_custom.group_role_merchandiser') and not self.env.user.is_leader: raise UserError("Beda Margin dengan Sales, harus approval Merchandise") if not self.from_apo: - if not self.sale_order_id and self.env.user.has_group('indoteknik_custom.group_role_merchandiser') and not self.env.user.is_leader: + if not self.sale_order_id 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") send_email = False |
