mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_quant_manual_assign: Migration to 15.0
This commit is contained in:
@@ -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, "
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user