From f5d1be2daf60165d654bf4c32c1fa91ab53a70c9 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 18 Aug 2022 11:47:28 +0700 Subject: add akbar as approval --- indoteknik_custom/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.3