diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-29 10:53:34 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-29 10:53:34 +0700 |
| commit | 57ea4bce8d785ba47a12ce0b3808a7d45e4add54 (patch) | |
| tree | 292e1d78e935145b7d9a555a6512a963fcf323a5 /indoteknik_custom/models/va_multi_reject.py | |
| parent | c5d2edf1a1e905d270e5cd1e5b6ed0cb5fa0bba1 (diff) | |
| parent | 301ad8d828e5ff43515b9f1ab467c9082fccd6f7 (diff) | |
Merge branch 'production' into iman/pengajuan-tempo
# Conflicts:
# indoteknik_custom/__manifest__.py
# indoteknik_custom/models/res_partner.py
# indoteknik_custom/security/ir.model.access.csv
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 |
