[MIG] stock_quant_manual_assign: Migration to 15.0

This commit is contained in:
Jasmin Solanki
2022-01-19 16:40:17 +05:30
parent db46efa3b0
commit e665aa697d
3 changed files with 8 additions and 2 deletions

View File

@@ -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, "

View File

@@ -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",

View File

@@ -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")