diff --git a/addons/sale_mrp/tests/test_sale_mrp_lead_time.py b/addons/sale_mrp/tests/test_sale_mrp_lead_time.py index b3c1b678922..0f5acd55daf 100644 --- a/addons/sale_mrp/tests/test_sale_mrp_lead_time.py +++ b/addons/sale_mrp/tests/test_sale_mrp_lead_time.py @@ -116,7 +116,7 @@ class TestSaleMrpLeadTime(TestStockCommon): out_date = fields.Datetime.from_string(order.date_order) + timedelta(days=self.product_1.sale_delay) - timedelta(days=out.move_lines[0].rule_id.delay) self.assertAlmostEqual( out_min_date, out_date, - delta=timedelta(seconds=1), + delta=timedelta(seconds=10), msg='Schedule date of ship type picking should be equal to: order date + Customer Lead Time - pull rule delay.' ) @@ -126,7 +126,7 @@ class TestSaleMrpLeadTime(TestStockCommon): pack_date = out_date - timedelta(days=pack.move_lines[0].rule_id.delay) self.assertAlmostEqual( pack_min_date, pack_date, - delta=timedelta(seconds=1), + delta=timedelta(seconds=10), msg='Schedule date of pack type picking should be equal to: Schedule date of ship type picking - pull rule delay.' ) @@ -135,7 +135,7 @@ class TestSaleMrpLeadTime(TestStockCommon): pick_min_date = fields.Datetime.from_string(pick.scheduled_date) self.assertAlmostEqual( pick_min_date, pack_date, - delta=timedelta(seconds=1), + delta=timedelta(seconds=10), msg='Schedule date of pick type picking should be equal to: Schedule date of pack type picking.' ) @@ -144,6 +144,6 @@ class TestSaleMrpLeadTime(TestStockCommon): date_planned_start = fields.Datetime.from_string(manufacturing_order.date_planned_start) self.assertAlmostEqual( date_planned_start, mo_date, - delta=timedelta(seconds=1), + delta=timedelta(seconds=10), msg="Schedule date of manufacturing order should be equal to: Schedule date of pack type picking - product's Manufacturing Lead Time." )