mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #114 from jlaloux/8.0
8.0 Fix an error when no payment_order_ids
This commit is contained in:
@@ -33,7 +33,7 @@ class BankingExportSepa(models.Model):
|
||||
|
||||
@api.one
|
||||
def _generate_filename(self):
|
||||
ref = self.payment_order_ids[0].reference
|
||||
ref = self.payment_order_ids.reference
|
||||
if ref:
|
||||
label = unidecode(ref.replace('/', '-'))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user