odex25_standard/odex25_takaful/odex_takaful/models/account_payment.py

17 lines
543 B
Python

from odoo import models, fields
class AccountPayment(models.Model):
_inherit = 'account.payment'
takaful_sponsorship_id = fields.Many2one(related="move_id.takaful_sponsorship_id")
confirm_payment_refund = fields.Binary()
IBN_number = fields.Integer()
confirm_payment_refund_image = fields.Binary()
payment_method_line_id_type = fields.Selection(related = 'journal_id.type')
class AccountPayment(models.Model):
_inherit = 'account.journal'
branch_ids = fields.Many2many('branch.settings', string="Branchs")