Skip to content

Commit

Permalink
[FIX] lp:1206167, Add journal type filter, to prevent to import unrec…
Browse files Browse the repository at this point in the history
…onciled bank move line
  • Loading branch information
yvaucher authored and Stefan Rijnhart committed Jul 2, 2014
1 parent 36f51d3 commit 42afe23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/account_payment/wizard/account_payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ def search_entries(self, cr, uid, ids, context=None):
# 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_to_pay', '>', 0)]
domain = [('reconcile_id', '=', False),
('account_id.type', '=', 'payable'),
('journal_id.type','<>','bank'),
('amount_to_pay', '>', 0)]
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})
Expand Down

0 comments on commit 42afe23

Please sign in to comment.