diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-12-31 09:44:11 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-12-31 09:44:11 +0700 |
| commit | 8d00df73e76162d624d2f32eefdd47ca68ca154c (patch) | |
| tree | ef2b9706de3bbe895709502bf60506bca8f20a91 /indoteknik_custom/models/requisition.py | |
| parent | 6a7b2e28c9c1612ac3e91ac321b72e3400fdb5a3 (diff) | |
| parent | d35c2dce88a87bc05d30c4935d51d7d58aa5d37d (diff) | |
Merge branch 'production' into iman/telegram
# Conflicts:
# indoteknik_custom/models/stock_picking.py
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 |
