mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Return res in inherit (even if res is empty in this case)
This commit is contained in:
committed by
Enric Tobella
parent
b404d02595
commit
c5bdb0c682
@@ -28,10 +28,10 @@ class PaymentOrderCreate(models.TransientModel):
|
||||
|
||||
@api.model
|
||||
def extend_payment_order_domain(self, payment_order, domain):
|
||||
super(PaymentOrderCreate, self).extend_payment_order_domain(
|
||||
res = super(PaymentOrderCreate, self).extend_payment_order_domain(
|
||||
payment_order, domain)
|
||||
domain += ['|', '|',
|
||||
('invoice', '=', False),
|
||||
('invoice.payment_mode_id', '=', False),
|
||||
('invoice.payment_mode_id', '=', payment_order.mode.id)]
|
||||
return True
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user