minor fix
This commit is contained in:
parent
820a75c3b8
commit
24d0e01e76
2
sale.py
2
sale.py
|
@ -1144,7 +1144,7 @@ class WizardSalePayment(Wizard):
|
||||||
]
|
]
|
||||||
context = Transaction().context
|
context = Transaction().context
|
||||||
|
|
||||||
if context.get('sale_device', None):
|
if context.get('sale_device', None) and sale.sale_device:
|
||||||
dom_statement.append(('sale_device', '=', sale.sale_device.id))
|
dom_statement.append(('sale_device', '=', sale.sale_device.id))
|
||||||
|
|
||||||
if result.get('view'):
|
if result.get('view'):
|
||||||
|
|
Loading…
Reference in New Issue