mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Port almost all modules to v10 * Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug #300)
23 lines
790 B
Python
23 lines
790 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2014 Compassion CH - Cyril Sester <csester@compassion.ch>
|
|
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
|
|
# © 2015-2016 Akretion - Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import models, fields, api
|
|
|
|
|
|
class BankPaymentLine(models.Model):
|
|
_inherit = 'bank.payment.line'
|
|
|
|
mandate_id = fields.Many2one(
|
|
comodel_name='account.banking.mandate', string='Direct Debit Mandate',
|
|
related='payment_line_ids.mandate_id')
|
|
|
|
@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.append('mandate_id')
|
|
return res
|