from odoo import models, fields import logging _logger = logging.getLogger(__name__) class AccountMoveMultiUpdate(models.TransientModel): _name = 'account.move.multi_update' payment_schedule = fields.Date(string="Jadwal Pembayaran") def save_multi_update(self): move_ids = self._context['move_ids'] moves = self.env['account.move'].browse(move_ids) moves.update({ 'payment_schedule': self.payment_schedule }) return { 'type': 'ir.actions.client', 'tag': 'display_notification', 'params': { 'title': 'Notification', 'message': 'Account Move berhasil diubah', 'next': {'type': 'ir.actions.act_window_close'}, } }