diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-12-17 17:22:35 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-12-17 17:22:35 +0700 |
| commit | d3abcb6d9efeb6fc48ab05df1da7e06175d04dea (patch) | |
| tree | 31b2a1a9d37714b352449a718a1165ee2d60afb6 /indoteknik_custom | |
| parent | 97d9a59c82be9052815be6039327148f07d98514 (diff) | |
add approval stephan
Diffstat (limited to 'indoteknik_custom')
| -rw-r--r-- | indoteknik_custom/models/requisition.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/requisition.py b/indoteknik_custom/models/requisition.py index 32a9f94f..c972b485 100644 --- a/indoteknik_custom/models/requisition.py +++ b/indoteknik_custom/models/requisition.py @@ -82,11 +82,11 @@ class Requisition(models.Model): state = ['done', 'sale'] if self.sale_order_id.state in state: raise UserError('SO sudah Confirm, akan berakibat double Purchase melalui PJ') - if self.env.user.id not in [377, 19]: + if self.env.user.id not in [377, 19, 28]: raise UserError('Hanya Vita dan Darren Yang Bisa Approve') - if self.env.user.id == 377: + if self.env.user.id == 377 or self.env.user.id == 28: self.sales_approve = True - elif self.env.user.id == 19: + elif self.env.user.id == 19 or self.env.user.id == 28: if not self.sales_approve: raise UserError('Vita Belum Approve') self.merchandise_approve = True |
