diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-02 09:11:48 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-02 09:11:48 +0700 |
| commit | 5f28a7a38385ccf529c85ea78138867e04ed6cba (patch) | |
| tree | 12d57bb0979d065e751f61214ed559079a048e70 | |
| parent | fcd64cd1e041c161a74ebe8f853c3e80000e6480 (diff) | |
<Miqdad> stock inven add more user
| -rw-r--r-- | indoteknik_custom/models/stock_inventory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/stock_inventory.py b/indoteknik_custom/models/stock_inventory.py index e34d9a8e..e41854ef 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 != 21: - raise UserError("Hanya Rafly H. yang bisa start inventory") + if self.env.user.id not in [21, 17, 6277]: + raise UserError("Hanya Rafly, denise, dan faisal yang bisa start inventory") @api.model def create(self, vals): |
