mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
23 lines
760 B
Python
23 lines
760 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2013-2015 Akretion - Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from openerp import models, fields, api
|
|
|
|
|
|
class BankPaymentLine(models.Model):
|
|
_inherit = 'bank.payment.line'
|
|
|
|
priority = fields.Selection(
|
|
related='payment_line_ids.priority', string='Priority')
|
|
local_instrument = fields.Selection(
|
|
related='payment_line_ids.local_instrument',
|
|
string='Local Instrument')
|
|
|
|
@api.model
|
|
def same_fields_payment_line_and_bank_payment_line(self):
|
|
res = super(BankPaymentLine, self).\
|
|
same_fields_payment_line_and_bank_payment_line()
|
|
res += ['priority', 'local_instrument']
|
|
return res
|