diff --git a/stock_quant_manual_assign/__manifest__.py b/stock_quant_manual_assign/__manifest__.py index 371c438a9..44c57fbfa 100644 --- a/stock_quant_manual_assign/__manifest__.py +++ b/stock_quant_manual_assign/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Stock - Manual Quant Assignment", - "version": "14.0.1.1.0", + "version": "15.0.1.0.0", "category": "Warehouse", "license": "AGPL-3", "author": "AvanzOSC, " diff --git a/stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py b/stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py index cfbab3ca2..6e594f7b8 100644 --- a/stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py +++ b/stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py @@ -13,11 +13,18 @@ class TestStockQuantManualAssign(TransactionCase): self.location_model = self.env["stock.location"] self.move_model = self.env["stock.move"] self.quant_assign_wizard = self.env["assign.manual.quants"] + self.ModelDataObj = self.env["ir.model.data"] self.product = self.env["product.product"].create( {"name": "Product 4 test", "type": "product"} ) self.location_src = self.env.ref("stock.stock_location_locations_virtual") self.location_dst = self.env.ref("stock.stock_location_customers") + self.picking_type_out = self.ModelDataObj._xmlid_to_res_id( + "stock.picking_type_out" + ) + self.env["stock.picking.type"].browse( + self.picking_type_out + ).reservation_method = "manual" self.location1 = self.location_model.create( { "name": "Location 1", diff --git a/stock_quant_manual_assign/wizard/assign_manual_quants.py b/stock_quant_manual_assign/wizard/assign_manual_quants.py index e58e91ea3..6ffa53076 100644 --- a/stock_quant_manual_assign/wizard/assign_manual_quants.py +++ b/stock_quant_manual_assign/wizard/assign_manual_quants.py @@ -156,7 +156,6 @@ class AssignManualQuantsLines(models.TransientModel): # This is not correctly shown as related or computed, so we make it regular on_hand = fields.Float( readonly=True, - string="On Hand", digits="Product Unit of Measure", ) reserved = fields.Float(string="Others Reserved", digits="Product Unit of Measure")