[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:
Sergi Almacellas Abellana 2013-03-21 12:18:28 +01:00
parent 96de3ac609
commit 02d2a65aaf

View file

@ -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