86
86
payment = order_obj.browse(cr, uid, context.get('active_id'), context=context)
87
87
# Search for move line to pay:
88
domain = [('reconcile_id', '=', False), ('account_id.type', '=', payment.type)]#,('amount_to_pay', '<>', 0)]
88
domain = [('reconcile_id', '=', False), ('account_id.type', '=', payment.type), ('amount_to_pay', '<>', 0)]
89
89
if payment.type =='payable' and not show_refunds:
90
90
domain += [ ('credit','>',0) ]