summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/manufacturing.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-07-28 15:09:55 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-07-28 15:09:55 +0700
commitd15ce4e186e2b77f01e8dfd03886298cc733d4c1 (patch)
tree1b32a4c29c4fcea85070fcecb5b77a7d55d30029 /indoteknik_custom/models/manufacturing.py
parentdeba962d7368a5c4e30441b5a640102608e3dde6 (diff)
parent36a53535dbdc5777266fd9276b4c557259dab6be (diff)
<hafid> merging odoo-backup
Diffstat (limited to 'indoteknik_custom/models/manufacturing.py')
-rw-r--r--indoteknik_custom/models/manufacturing.py3
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')