summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2025-12-10 13:35:40 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2025-12-10 13:35:40 +0700
commit50d5259f8af1c9bbaee5d6ceb75e70d8aaa29084 (patch)
treee03d77cdb02060dd5c9ece5bdbc02258f903eeef
parentd746dacecc64c2effb9166b54808f0e81ea8303f (diff)
<MIqdad> change permission inventory adjusment
-rw-r--r--indoteknik_custom/models/stock_inventory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/stock_inventory.py b/indoteknik_custom/models/stock_inventory.py
index 432d9225..84eb5a17 100644
--- a/indoteknik_custom/models/stock_inventory.py
+++ b/indoteknik_custom/models/stock_inventory.py
@@ -53,8 +53,8 @@ class StockInventory(models.Model):
return "00001" # Jika belum ada data, mulai dari 00001
def action_start(self):
- if self.env.user.id not in [21, 17, 6277]:
- raise UserError("Hanya Rafly, denise, dan faisal yang bisa start inventory")
+ if self.env.user.id not in [21, 17, 571, 28]:
+ raise UserError("Hanya Rafly, Denise, Iqmal, dan Stephan yang bisa start inventory")
return super(StockInventory, self).action_start()
@api.model