mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Define SEPA identifiers per payment mode
This commit is contained in:
committed by
Carlos Roca
parent
352ff92c94
commit
94daaa3f01
@@ -1,6 +1,6 @@
|
||||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||
:alt: License: AGPL-3
|
||||
|
||||
|
||||
Account Banking SEPA Credit Transfer
|
||||
====================================
|
||||
|
||||
@@ -47,7 +47,7 @@ Known issues / Roadmap
|
||||
======================
|
||||
|
||||
* No known issues
|
||||
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
@@ -62,15 +62,16 @@ Credits
|
||||
Contributors
|
||||
------------
|
||||
|
||||
Alexis de Lattre
|
||||
Pedro M. Baeza
|
||||
Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||
Stefan Rijnhart
|
||||
Julien Laloux
|
||||
Alexandre Fayolle
|
||||
Raphaël Valyi
|
||||
Erwin van der Ploeg
|
||||
Sandy Carter
|
||||
* Alexis de Lattre
|
||||
* Pedro M. Baeza
|
||||
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||
* Stefan Rijnhart
|
||||
* Julien Laloux
|
||||
* Alexandre Fayolle
|
||||
* Raphaël Valyi
|
||||
* Erwin van der Ploeg
|
||||
* Sandy Carter
|
||||
* Antonio Espinosa <antonioea@antiun.com>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2010-2013 Akretion (www.akretion.com)
|
||||
|
||||
from . import models
|
||||
from . import wizard
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2010-2015 Akretion (www.akretion.com)
|
||||
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
|
||||
# © 2016 Antiun Ingenieria S.L. - Antonio Espinosa
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
'name': 'Account Banking SEPA Credit Transfer',
|
||||
'summary': 'Create SEPA XML files for Credit Transfers',
|
||||
'version': '8.0.0.4.0',
|
||||
'version': '8.0.0.5.0',
|
||||
'license': 'AGPL-3',
|
||||
'author': "Akretion, "
|
||||
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
|
||||
"Antiun Ingeniería S.L., "
|
||||
"Odoo Community Association (OCA)",
|
||||
'website': 'https://github.com/OCA/bank-payment',
|
||||
'category': 'Banking addons',
|
||||
|
||||
3
account_banking_sepa_credit_transfer/models/__init__.py
Normal file
3
account_banking_sepa_credit_transfer/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import payment_mode
|
||||
16
account_banking_sepa_credit_transfer/models/payment_mode.py
Normal file
16
account_banking_sepa_credit_transfer/models/payment_mode.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2016 Antiun Ingenieria S.L. - Antonio Espinosa
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from openerp import models
|
||||
|
||||
|
||||
class PaymentMode(models.Model):
|
||||
_inherit = 'payment.mode'
|
||||
|
||||
def _sepa_type_get(self):
|
||||
res = super(PaymentMode, self)._sepa_type_get()
|
||||
if not res:
|
||||
if self.type.code and self.type.code.startswith('pain.001'):
|
||||
res = 'sepa_credit_transfer'
|
||||
return res
|
||||
Reference in New Issue
Block a user