mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
FIX manual payment method
This commit is contained in:
committed by
Enric Tobella
parent
d6fb1bf115
commit
e85b79b5d1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user