FIX manual payment method

This commit is contained in:
Alexis de Lattre
2016-06-16 15:19:01 +02:00
committed by Enric Tobella
parent d6fb1bf115
commit e85b79b5d1

View File

@@ -35,9 +35,7 @@ class AccountPaymentOrder(models.Model):
def generate_payment_file(self):
"""Creates the SEPA Direct Debit file. That's the important code !"""
self.ensure_one()
if (
self.payment_method_id.code !=
'sepa_direct_debit'):
if self.payment_method_id.code != 'sepa_direct_debit':
return super(AccountPaymentOrder, self).generate_payment_file()
pain_flavor = self.payment_method_id.pain_version
# We use pain_flavor.startswith('pain.008.001.xx')