1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_accountant_batch_payment/models/account_batch_payment.py
2024-12-10 09:04:09 +07:00

24 lines
643 B
Python

# -*- coding: utf-8 -*-
from odoo import models, _
class AccountBatchPayment(models.Model):
_inherit = 'account.batch.payment'
def action_open_batch_payment(self):
self.ensure_one()
return {
'name': _("Batch Payment"),
'type': 'ir.actions.act_window',
'view_mode': 'form',
'view_id': self.env.ref('account_batch_payment.view_batch_payment_form').id,
'res_model': self._name,
'res_id': self.id,
'context': {
'create': False,
'delete': False,
},
'target': 'current',
}