diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-08-18 11:47:28 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-08-18 11:47:28 +0700 |
| commit | f5d1be2daf60165d654bf4c32c1fa91ab53a70c9 (patch) | |
| tree | c3098dc656dc82fa4a4f4d00c38983b7c97727ed | |
| parent | 9a97cf1790f913a9fcb9ea4744154305d6ca1ced (diff) | |
add akbar as approval
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index ed2676b8..7ffd5179 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -69,7 +69,7 @@ class SaleOrder(models.Model): for line in order.order_line: if (line.item_percent_margin <= 15 or line.item_percent_margin == 100) and self.env.user.id != 6: raise UserError("Need Tyas / Akbar Approval") - elif line.item_percent_margin <= 40 and self.env.user.id != 8: + elif line.item_percent_margin <= 40 and (self.env.user.id != 8 or self.env.user.id != 7): raise UserError("Need Adela Approval") order.approval_status = 'approved' |
