From de49bfaafc4ad39f41d62a6c19a6c75da3261e50 Mon Sep 17 00:00:00 2001 From: xavierjimenez Date: Thu, 28 Jun 2018 17:59:26 +0200 Subject: [PATCH] [FIX] Function changes on tests --- .../tests/test_stock_inventory_preparation_filter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stock_inventory_preparation_filter/tests/test_stock_inventory_preparation_filter.py b/stock_inventory_preparation_filter/tests/test_stock_inventory_preparation_filter.py index ebed2279d..1ff6abd4f 100644 --- a/stock_inventory_preparation_filter/tests/test_stock_inventory_preparation_filter.py +++ b/stock_inventory_preparation_filter/tests/test_stock_inventory_preparation_filter.py @@ -95,7 +95,7 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase): 'location_id': self.location.id, 'categ_ids': [(6, 0, [self.category.id])], }) - inventory.prepare_inventory() + inventory.action_start() self.assertEqual(len(inventory.line_ids), 2) line1 = inventory.line_ids[0] self.assertEqual(line1.product_id, self.product1) @@ -115,7 +115,7 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase): 'product_ids': [(6, 0, [self.product1.id, self.product2.id])], } ) - inventory.prepare_inventory() + inventory.action_start() self.assertEqual(len(inventory.line_ids), 2) line1 = inventory.line_ids[0] self.assertEqual(line1.product_id, self.product1) @@ -135,7 +135,7 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase): 'lot_ids': [(6, 0, [self.lot.id, ])], } ) - inventory.prepare_inventory() + inventory.action_start() self.assertEqual(len(inventory.line_ids), 1) line1 = inventory.line_ids[0] self.assertEqual(line1.product_id, self.product_lot) @@ -167,7 +167,7 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase): }), ], }) - inventory.prepare_inventory() + inventory.action_start() self.assertEqual(len(inventory.line_ids), 3) line1 = inventory.line_ids[0] self.assertEqual(line1.product_id, self.product1)