summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/account_move.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 5ac691ac..c8f9c288 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -20,11 +20,11 @@ class AccountMove(models.Model):
raise UserError('Hanya Accounting yang bisa delete')
return res
- def button_cancel(self):
- res = super(AccountMove, self).button_cancel()
- if not self.env.user.is_accounting:
- raise UserError('Hanya Accounting yang bisa Cancel')
- return res
+ # def button_cancel(self):
+ # res = super(AccountMove, self).button_cancel()
+ # if not self.env.user.is_accounting:
+ # raise UserError('Hanya Accounting yang bisa Cancel')
+ # return res
def button_draft(self):
res = super(AccountMove, self).button_draft()