mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
As suggested by Stefan: also select invoices with empty payment.mode.type.
This commit is contained in:
committed by
Enric Tobella
parent
7a13e7132b
commit
235ef687de
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user