Return res in inherit (even if res is empty in this case)

This commit is contained in:
Alexis de Lattre
2015-01-19 22:58:36 +01:00
committed by Enric Tobella
parent b404d02595
commit c5bdb0c682

View File

@@ -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