[FIX] account_payment: amount_residual doesn't have a fct_search so it should be replaced by something else

bzr revid: qdp-launchpad@openerp.com-20131113100713-tvl30z5oqym22jqj
This commit is contained in:
Quentin (OpenERP) 2013-11-13 11:07:13 +01:00
parent 2a6e668f74
commit 700d456cbb
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class payment_order_create(osv.osv_memory):
# payment = self.pool.get('payment.order').browse(cr, uid, context['active_id'], context=context)
# Search for move line to pay:
domain = [('reconcile_id', '=', False), ('account_id.type', '=', 'payable'), ('amount_residual', '>', 0)]
domain = [('reconcile_id', '=', False), ('account_id.type', '=', 'payable'), ('credit', '>', 0), ('account_id.reconcile', '=', True)]
domain = domain + ['|', ('date_maturity', '<=', search_due_date), ('date_maturity', '=', False)]
line_ids = line_obj.search(cr, uid, domain, context=context)
context.update({'line_ids': line_ids})