bzr revid: chs@openerp.com-20131124181037-1tks1yruahiv0jwi
This commit is contained in:
Christophe Simonis 2013-11-24 19:10:37 +01:00
parent 42cc2fe2f1
commit d3f99f75a6
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})