From e6f0cf491084cedf9181a274d09070a17d08edeb Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 17 Sep 2015 15:44:48 +0200 Subject: [PATCH] [IMP][account_invoice_split] Use exists function to check if the record is deleted --- account_invoice_split/tests/test_account_invoice_split.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/account_invoice_split/tests/test_account_invoice_split.py b/account_invoice_split/tests/test_account_invoice_split.py index e3ee70b9f818..8beeeb268854 100644 --- a/account_invoice_split/tests/test_account_invoice_split.py +++ b/account_invoice_split/tests/test_account_invoice_split.py @@ -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