summaryrefslogtreecommitdiff
path: root/addons/mrp/tests/test_workorder_operation.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mrp/tests/test_workorder_operation.py')
-rw-r--r--addons/mrp/tests/test_workorder_operation.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mrp/tests/test_workorder_operation.py b/addons/mrp/tests/test_workorder_operation.py
index 38d52c799c2..530abcab062 100644
--- a/addons/mrp/tests/test_workorder_operation.py
+++ b/addons/mrp/tests/test_workorder_operation.py
@@ -307,11 +307,11 @@ class TestWorkOrderProcess(TestMrpCommon):
man_order = man_order_form.save()
# reset quantities
self.product_1.type = "product"
- self.env['stock.change.product.qty'].create({
+ self.env['stock.quant'].with_context(inventory_mode=True).create({
'product_id': self.product_1.id,
- 'new_quantity': 0.0,
+ 'inventory_quantity': 0.0,
'location_id': self.warehouse_1.lot_stock_id.id,
- }).change_product_qty()
+ })
(self.product_2 | self.product_4).write({
'tracking': 'none',