From cc17260c3fee91c71f4e1e82aab9eea0165d434c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Sat, 6 Jul 2019 13:47:21 +0200 Subject: [PATCH] fixup! [FIX] fix negative quant in blocked location --- .../tests/test_block_stock_location_entrance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock_location_lockdown/tests/test_block_stock_location_entrance.py b/stock_location_lockdown/tests/test_block_stock_location_entrance.py index 85598d351..51dc3938f 100644 --- a/stock_location_lockdown/tests/test_block_stock_location_entrance.py +++ b/stock_location_lockdown/tests/test_block_stock_location_entrance.py @@ -25,7 +25,7 @@ class TestStockLocationLockdown(TransactionCase): 'location_id': self.supplier_location.id, 'location_dest_id': self.main_stock_location.id, 'product_id': self.product.id, - 'product_uom_qty': '2.0', + 'product_uom_qty': self.product.qty_available + 1, 'product_uom': 1, 'name': 'test', } @@ -42,7 +42,7 @@ class TestStockLocationLockdown(TransactionCase): 'location_id': self.main_stock_location.id, 'location_dest_id': self.customer_location.id, 'product_id': self.product.id, - 'product_uom_qty': '2.0', + 'product_uom_qty': self.product.qty_available + 1, 'product_uom': 1, 'name': 'test', }