diff --git a/account_payment_order_return/wizards/account_payment_line_create.py b/account_payment_order_return/wizards/account_payment_line_create.py index d443af40d..af489e1c8 100644 --- a/account_payment_order_return/wizards/account_payment_line_create.py +++ b/account_payment_order_return/wizards/account_payment_line_create.py @@ -15,5 +15,9 @@ class AccountPaymentLineCreate(models.TransientModel): domain = super(AccountPaymentLineCreate, self)._prepare_move_line_domain() if not self.include_returned: - domain.append(('invoice_id.returned_payment', '=', False)) + domain += [ + '|', + ('invoice_id', '=', False), + ('invoice_id.returned_payment', '=', False) + ] return domain