summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/account_move.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 4db97706..b188285d 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -31,8 +31,7 @@ class AccountMove(models.Model):
def unlink(self):
res = super(AccountMove, self).unlink()
- if not self.env.user.is_accounting:
- raise UserError('Hanya Accounting yang bisa delete')
+ raise UserError('Data Hanya Bisa Di Cancel')
return res
def button_cancel(self):