Fix an error when no payment_order_ids

This commit is contained in:
Julien Laloux
2015-01-28 09:53:38 +01:00
committed by Valentin Vinagre Urteaga
parent 6519678a6c
commit f63b847aa7

View File

@@ -37,7 +37,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: