mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_move_location: stock_move_location_line_ids
This commit is contained in:
@@ -47,11 +47,10 @@ class StockMoveLocationWizard(models.TransientModel):
|
|||||||
required=True,
|
required=True,
|
||||||
domain=lambda self: self._get_locations_domain(),
|
domain=lambda self: self._get_locations_domain(),
|
||||||
)
|
)
|
||||||
stock_move_location_line_ids = fields.Many2many(
|
stock_move_location_line_ids = fields.One2many(
|
||||||
|
"wiz.stock.move.location.line",
|
||||||
|
"move_location_wizard_id",
|
||||||
string="Move Location lines",
|
string="Move Location lines",
|
||||||
comodel_name="wiz.stock.move.location.line",
|
|
||||||
column1="move_location_wiz_id",
|
|
||||||
column2="move_location_line_wiz_id",
|
|
||||||
)
|
)
|
||||||
picking_type_id = fields.Many2one(
|
picking_type_id = fields.Many2one(
|
||||||
comodel_name="stock.picking.type", default=_get_default_picking_type_id
|
comodel_name="stock.picking.type", default=_get_default_picking_type_id
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
<field
|
<field
|
||||||
name="stock_move_location_line_ids"
|
name="stock_move_location_line_ids"
|
||||||
nolabel="1"
|
nolabel="1"
|
||||||
widget="one2many_list"
|
|
||||||
mode="tree,kanban"
|
mode="tree,kanban"
|
||||||
>
|
>
|
||||||
<tree
|
<tree
|
||||||
|
|||||||
@@ -11,12 +11,9 @@ class StockMoveLocationWizardLine(models.TransientModel):
|
|||||||
_name = "wiz.stock.move.location.line"
|
_name = "wiz.stock.move.location.line"
|
||||||
_description = "Wizard move location line"
|
_description = "Wizard move location line"
|
||||||
|
|
||||||
move_location_wizard_id = fields.Many2many(
|
move_location_wizard_id = fields.Many2one(
|
||||||
string="Move location Wizard",
|
string="Move location Wizard",
|
||||||
comodel_name="wiz.stock.move.location",
|
comodel_name="wiz.stock.move.location",
|
||||||
column1="move_location_line_wiz_id",
|
|
||||||
column2="move_location_wiz_id",
|
|
||||||
readonly=True,
|
|
||||||
)
|
)
|
||||||
product_id = fields.Many2one(
|
product_id = fields.Many2one(
|
||||||
string="Product", comodel_name="product.product", required=True
|
string="Product", comodel_name="product.product", required=True
|
||||||
|
|||||||
Reference in New Issue
Block a user