mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Improve code
This commit is contained in:
committed by
Enric Tobella
parent
c7a2e4a851
commit
f49cd7eb97
@@ -33,7 +33,7 @@ class BankingExportSepa(models.Model):
|
||||
|
||||
@api.one
|
||||
def _generate_filename(self):
|
||||
ref = self.payment_order_ids and self.payment_order_ids[0].reference or False
|
||||
ref = self.payment_order_ids.reference
|
||||
if ref:
|
||||
label = unidecode(ref.replace('/', '-'))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user