diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-31 11:40:38 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-31 11:40:38 +0700 |
| commit | 2832c5fe5f96271400749022a9136a6f72b474ca (patch) | |
| tree | ecbfe4ab6e2c98ea9199100b3c6ed81dbd77d282 | |
| parent | 2c4c5ef80fe7093c2d017802dd0713d460a5b1f7 (diff) | |
unlink account move
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 3 |
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): |
