diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-06-02 09:23:07 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-06-02 09:23:07 +0700 |
| commit | 2bc522f12795bbd649d28fbc6f127df2ebac34ee (patch) | |
| tree | 0dfebb75f458c738f63593313b0e19e917e85860 /indoteknik_custom/models/manufacturing.py | |
| parent | 1a0b0cb4a740d831f69ea29943cfa0aed8e31fac (diff) | |
| parent | 484b0e613d0d021faa11c619087baf36e4eacd09 (diff) | |
<hafid> fix email to Putra & Darren in pengajuan Tempo
Diffstat (limited to 'indoteknik_custom/models/manufacturing.py')
| -rw-r--r-- | indoteknik_custom/models/manufacturing.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/manufacturing.py b/indoteknik_custom/models/manufacturing.py index 715d8513..aea01362 100644 --- a/indoteknik_custom/models/manufacturing.py +++ b/indoteknik_custom/models/manufacturing.py @@ -11,6 +11,9 @@ class Manufacturing(models.Model): def action_confirm(self): if self._name != 'mrp.production': return super(Manufacturing, self).action_confirm() + + if not self.env.user.is_purchasing_manager: + raise UserError("Hanya bisa di confirm oleh Purchasing Manager") # if self.location_src_id.id != 75: # raise UserError('Component Location hanya bisa di AS/Stock') |
