Define SEPA identifiers per payment mode

This commit is contained in:
Antonio Espinosa
2016-03-04 17:15:53 +01:00
committed by Carlos Roca
parent 352ff92c94
commit 94daaa3f01
5 changed files with 35 additions and 12 deletions

View File

@@ -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
----------

View File

@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# © 2010-2013 Akretion (www.akretion.com)
from . import models
from . import wizard

View File

@@ -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',

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import payment_mode

View 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