diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-11-21 14:01:16 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-11-21 14:01:16 +0700 |
| commit | 130390b0c4c8c37f5a69d3833f5f1ad9e60e787d (patch) | |
| tree | a9382d8dbdad5015c28605b619d3ba49b66bb272 /indoteknik_custom/models/va_multi_reject.py | |
| parent | b9bdfb05f96affaeec8e197b6585df140d4cd11c (diff) | |
push
Diffstat (limited to 'indoteknik_custom/models/va_multi_reject.py')
| -rw-r--r-- | indoteknik_custom/models/va_multi_reject.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/indoteknik_custom/models/va_multi_reject.py b/indoteknik_custom/models/va_multi_reject.py new file mode 100644 index 00000000..c05581bf --- /dev/null +++ b/indoteknik_custom/models/va_multi_reject.py @@ -0,0 +1,22 @@ +from odoo import models, fields +import logging + +_logger = logging.getLogger(__name__) + + +class VaMultiReject(models.TransientModel): + _name = 'va.multi.reject' + + def save_multi_reject_va(self): + va_ids = self._context['va_ids'] + vendor_approval = self.env['vendor.approval'].browse(va_ids) + vendor_approval.action_reject() + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'title': 'Notification', + 'message': 'Berhasil Di Reject', + 'next': {'type': 'ir.actions.act_window_close'}, + } + }
\ No newline at end of file |
