From 245e4b2db91ec67fbc74703413551fb7864f9b8b Mon Sep 17 00:00:00 2001 From: Mqdd Date: Fri, 27 Feb 2026 09:33:21 +0700 Subject: add glenn permission --- fixco_custom/models/account_move.py | 4 ++-- 1 file 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() -- cgit v1.2.3