diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-05 14:47:42 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-05 14:47:42 +0700 |
| commit | 1e9e0c28ee4dc63f1465affac6d98ae213d9f283 (patch) | |
| tree | e48922d3885f3c1870f24cfad2c708389468d722 /indoteknik_custom/models/va_multi_approve.py | |
| parent | 4d5a0a6e2d997e323f8670172226f613b7673d62 (diff) | |
| parent | 4eac4d0709ec5d9e03b517a39cb67acbc35e2932 (diff) | |
Merge branch 'production' of https://bitbucket.org/altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/models/va_multi_approve.py')
| -rw-r--r-- | indoteknik_custom/models/va_multi_approve.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/indoteknik_custom/models/va_multi_approve.py b/indoteknik_custom/models/va_multi_approve.py new file mode 100644 index 00000000..028358c2 --- /dev/null +++ b/indoteknik_custom/models/va_multi_approve.py @@ -0,0 +1,22 @@ +from odoo import models, fields +import logging + +_logger = logging.getLogger(__name__) + + +class VaMultiApprove(models.TransientModel): + _name = 'va.multi.approve' + + def save_multi_approve_va(self): + va_ids = self._context['va_ids'] + vendor_approval = self.env['vendor.approval'].browse(va_ids) + vendor_approval.action_approve() + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'title': 'Notification', + 'message': 'Berhasil Di Approve', + 'next': {'type': 'ir.actions.act_window_close'}, + } + }
\ No newline at end of file |
