Check invoice number and dates when an invoice has not number

From changeset-39bcbc8ec7e5
This commit is contained in:
Raimon Esteve 2018-03-15 10:15:13 +01:00
parent 3dbd932a33
commit fd4a7ba073

View file

@ -63,7 +63,8 @@ class Invoice:
InvoiceLine = pool.get('account.invoice.line')
Lang = pool.get('ir.lang')
Module = pool.get('ir.module')
to_check = [i for i in invoices if i.type == 'out']
to_check = [i for i in invoices if i.type == 'out' and not i.number]
super(Invoice, cls).set_number(invoices)
for invoice in to_check: