[MERGE] backport trunk revision 8974 qdp-launchpad@openerp.com-20131113100713-tvl30z5oqym22jqj
bzr revid: chs@openerp.com-20131124181037-1tks1yruahiv0jwi
This commit is contained in:
parent
42cc2fe2f1
commit
d3f99f75a6
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue