mirror of
https://github.com/NaN-tic/trytond-account_invoice_consecutive.git
synced 2023-12-13 20:50:10 +01:00
Check invoice number and dates when an invoice has not number
From changeset-39bcbc8ec7e5
This commit is contained in:
parent
3dbd932a33
commit
fd4a7ba073
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue