diff --git a/stock_vertical_lift/__manifest__.py b/stock_vertical_lift/__manifest__.py index 7d97d1741..11edb3846 100644 --- a/stock_vertical_lift/__manifest__.py +++ b/stock_vertical_lift/__manifest__.py @@ -13,6 +13,7 @@ 'base_sparse_field', 'stock_location_tray', # OCA/stock-logistics-warehouse 'web_notify', # OCA/web + 'web_ir_actions_act_view_reload', # OCA/web ], 'website': 'https://github.com/OCA/stock-logistics-warehouse', 'demo': [ diff --git a/stock_vertical_lift/models/stock_move_line.py b/stock_vertical_lift/models/stock_move_line.py index a26873c0a..433d6f33d 100644 --- a/stock_vertical_lift/models/stock_move_line.py +++ b/stock_vertical_lift/models/stock_move_line.py @@ -10,9 +10,12 @@ class StockMoveLine(models.Model): def fetch_vertical_lift_tray_source(self): self.ensure_one() self.location_id.fetch_vertical_lift_tray() - return {"type": "ir.actions.do_nothing"} + # We reload mainly because otherwise, it would close + # the popup. This action is provided by the OCA module + # web_ir_actions_act_view_reload + return {"type": "ir.actions.act_view_reload"} def fetch_vertical_lift_tray_dest(self): self.ensure_one() self.location_dest_id.fetch_vertical_lift_tray() - return {"type": "ir.actions.do_nothing"} + return {"type": "ir.actions.act_view_reload"}