[FIX] sale_timesheet: adapt test.

Set SO in draft before reconfirming it.
This commit is contained in:
Christophe Simonis
2018-09-10 11:52:45 +02:00
parent 767da196ad
commit f099486c0c
@@ -259,6 +259,7 @@ class TestSaleService(TestCommonSaleTimesheetNoChart):
self.assertEqual(so_line1.product_uom_qty, so_line1.task_id.planned_hours, "The planned hours should have changed when updating the ordered quantity, even after SO cancellation")
# reconfirm SO
self.sale_order.action_draft()
self.sale_order.action_confirm()
self.assertTrue(so_line1.task_id, "SO reconfirmation should not have create another task")