Skip to content

Commit

Permalink
[IMP][account_invoice_split] Use exists function to check if the reco…
Browse files Browse the repository at this point in the history
…rd is deleted
  • Loading branch information
adrienpeiffer committed Oct 1, 2015
1 parent ac47b2b commit e6f0cf4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions account_invoice_split/tests/test_account_invoice_split.py
Expand Up @@ -71,9 +71,7 @@ def test_split_invoice_line_remove_line(self):
wiz_line.quantity_to_split = quantity_to_split
wiz._split_invoice()
# I check that the line to split is deleted
invoice_line = \
self.invoice_line_obj.search([('id', '=', line_to_split.id)])
self.assertFalse(invoice_line)
self.assertFalse(line_to_split.exists())

def test_split_open_invoice(self):
# I post the created invoice
Expand Down

0 comments on commit e6f0cf4

Please sign in to comment.