mirror of
https://github.com/NaN-tic/trytond-account_invoice_consecutive.git
synced 2023-12-13 20:50:10 +01:00
[FIX] Always call super on set_number
If you don't call always super the supplier invoices won't get any secuence number.
This commit is contained in:
parent
96de3ac609
commit
02d2a65aaf
|
@ -26,8 +26,8 @@ class Invoice:
|
|||
# TODO: When do we check this?
|
||||
#if not invoice.journal_id.check_invoice_lines_tax:
|
||||
#continue
|
||||
res = super(Invoice, self).set_number()
|
||||
if self.type in ('out_invoice', 'out_credit_note'):
|
||||
res = super(Invoice, self).set_number()
|
||||
cursor = Transaction().cursor
|
||||
cursor.execute("""
|
||||
SELECT
|
||||
|
|
Loading…
Reference in a new issue