From 15c3e91887bb5cf8712c5af8241ae6089e9dd678 Mon Sep 17 00:00:00 2001 From: Aungkokolin1997 Date: Tue, 27 Dec 2022 10:13:20 +0630 Subject: [PATCH] [FIX] stock_move_location: stock_move_location_line_ids --- stock_move_location/wizard/stock_move_location.py | 7 +++---- stock_move_location/wizard/stock_move_location.xml | 1 - stock_move_location/wizard/stock_move_location_line.py | 5 +---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/stock_move_location/wizard/stock_move_location.py b/stock_move_location/wizard/stock_move_location.py index 129747138..05873e560 100644 --- a/stock_move_location/wizard/stock_move_location.py +++ b/stock_move_location/wizard/stock_move_location.py @@ -47,11 +47,10 @@ class StockMoveLocationWizard(models.TransientModel): required=True, 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", - comodel_name="wiz.stock.move.location.line", - column1="move_location_wiz_id", - column2="move_location_line_wiz_id", ) picking_type_id = fields.Many2one( comodel_name="stock.picking.type", default=_get_default_picking_type_id diff --git a/stock_move_location/wizard/stock_move_location.xml b/stock_move_location/wizard/stock_move_location.xml index f98a63284..a42da5cca 100644 --- a/stock_move_location/wizard/stock_move_location.xml +++ b/stock_move_location/wizard/stock_move_location.xml @@ -41,7 +41,6 @@