As suggested by Stefan: also select invoices with empty payment.mode.type.

This commit is contained in:
Alexis de Lattre
2014-04-12 00:48:45 +02:00
committed by Enric Tobella
parent 7a13e7132b
commit 235ef687de

View File

@@ -31,8 +31,9 @@ class payment_order_create(orm.TransientModel):
super(payment_order_create, self).extend_payment_order_domain(
cr, uid, payment_order, domain, context=context)
domain += [
'|',
'|', '|',
('invoice', '=', False),
('invoice.payment_mode_type', '=', False),
('invoice.payment_mode_type', '=', payment_order.mode_type.id)
]
return True