Skip to content

Commit

Permalink
Merge pull request #1 from vrenaville/lawsuit_imp
Browse files Browse the repository at this point in the history
[IMP] even if an invoice is paid, we need to be able to set an credit…
  • Loading branch information
guewen committed May 12, 2016
2 parents 420ab00 + e9cba55 commit 666cfca
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def _get_default_lines(self):
raise api.Warning(_('Please use wizard on customer invoices'))

domain = [('account_id', '=', invoice.account_id.id),
('move_id', '=', invoice.move_id.id),
('reconcile_id', '=', False)]
('move_id', '=', invoice.move_id.id)]
if invoice.state != 'paid':
domain.append(('reconcile_id', '=', False))
move_lines = move_line_obj.search(domain)
selected_lines |= move_lines
return selected_lines
Expand Down

0 comments on commit 666cfca

Please sign in to comment.