diff options
Diffstat (limited to 'fixco_custom')
| -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() |
