diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-27 09:33:21 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-27 09:33:21 +0700 |
| commit | 245e4b2db91ec67fbc74703413551fb7864f9b8b (patch) | |
| tree | 3ae2bceeef3737948dfe3fb16795ccd6b1db6eb8 | |
| parent | e4867b6a6e7599ff535b171025d1e5b8561ce891 (diff) | |
<Miqdad> add glenn permission
| -rw-r--r-- | fixco_custom/models/account_move.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fixco_custom/models/account_move.py b/fixco_custom/models/account_move.py index 028e2cb..f8a9073 100644 --- a/fixco_custom/models/account_move.py +++ b/fixco_custom/models/account_move.py @@ -149,13 +149,13 @@ class AccountMove(models.Model): ]) def button_draft(self): - if self.env.user.id not in [24, 13, 10, 2, 9, 15, 8]: + if self.env.user.id not in [24, 13, 10, 2, 9, 15, 8, 11]: raise UserError("Hanya Finance yang bisa ubah Draft") res = super(AccountMove, self).button_draft() return res def button_cancel(self): - if self.env.user.id not in [24, 13, 10, 2, 9, 15, 8]: + if self.env.user.id not in [24, 13, 10, 2, 9, 15, 8, 11]: raise UserError('Hanya Accounting yang bisa Cancel') res = super(AccountMove, self).button_cancel() |
