diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-15 15:43:42 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-15 15:43:42 +0700 |
| commit | be1ee2092fef86e79932206cc48d5a146107ac32 (patch) | |
| tree | e54a8c6ffda996f212ab1c2d03b27a32bab8ba89 /indoteknik_custom/models/requisition.py | |
| parent | 8b2897d9c72eb67382221d320d488543aea08323 (diff) | |
| parent | e4ec9406cd0903db59cfed34781da55a2dba4ca3 (diff) | |
Merge branch 'odoo-production' into iman/switch-account
Diffstat (limited to 'indoteknik_custom/models/requisition.py')
| -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 |
