[FIX] sale: Fix SO tests to reflect behavior change in f867fc9269

Deleting cancelled SO is now possible.

Closes #9672
This commit is contained in:
Thomas Groutars
2015-11-23 09:49:59 +01:00
committed by Olivier Dony
parent 2784bab5be
commit 03af949697
-2
View File
@@ -85,8 +85,6 @@ class TestSaleOrder(TestSale):
# cancelling and setting to done, you should not be able to delete any SO ever
so.action_cancel()
self.assertTrue(so.state == 'cancel', 'Sale: cancelling SO should always be possible')
with self.assertRaises(UserError):
so.sudo(self.manager).unlink()
so.action_done()
self.assertTrue(so.state == 'done', 'Sale: SO not done')