blob: c05581bf9e8ee865c172c17ea992e9b2cbe73b70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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'},
}
}
|