FIX set number when sale has not number

FIX second part in changeset-cb8a205
This commit is contained in:
Raimon Esteve 2017-04-18 18:23:39 +02:00
parent 0903c55ce6
commit 3c6dce1223

View File

@ -245,7 +245,7 @@ class WizardSalePayment(Wizard):
active_id = Transaction().context.get('active_id', False) active_id = Transaction().context.get('active_id', False)
sale = Sale(active_id) sale = Sale(active_id)
if not sale.reference: if not sale.number:
Sale.set_number([sale]) Sale.set_number([sale])
account = (sale.party.account_receivable account = (sale.party.account_receivable