Skip to content

Commit

Permalink
Merge pull request #3 from tafaRU/8.0-account_invoice_under_payment-fix2
Browse files Browse the repository at this point in the history
[FIX] account_invoice_under_payment: also show partial reconcile in payment.order.create wizard
  • Loading branch information
JayVora-SerpentCS committed Jan 30, 2017
2 parents 9fe303c + ac12c94 commit 6e16c02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions account_invoice_under_payment/wizard/payment_order_create.py
Expand Up @@ -15,6 +15,10 @@ def search_entries(self):
result = super(PaymentOrderCreate, self).search_entries()
line_obj = self.env['account.move.line']
result.get('context', {}).update({'line_ids': line_obj.search(
[('id', 'in', result['context']['line_ids']),
('under_payment', '=', False)]).ids})
['&',
('id', 'in', result['context']['line_ids']),
'|',
('under_payment', '=', False),
('reconcile_partial_id', '!=', False),
]).ids})
return result

0 comments on commit 6e16c02

Please sign in to comment.