From ec5e63cf80f64c47e1fcaa3d4560c930860d0a3b Mon Sep 17 00:00:00 2001 From: Arnold Moyaux Date: Tue, 8 Oct 2019 14:02:30 +0000 Subject: [PATCH] [FIX] mrp_subcontracting: correct type for view registry When the action is called by a javascript function the view is not correctly rendered because the tree type does not exist in the registry but the correct type is list. --- addons/mrp_subcontracting/models/stock_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp_subcontracting/models/stock_move.py b/addons/mrp_subcontracting/models/stock_move.py index 06e762c6f1f..3871329238c 100644 --- a/addons/mrp_subcontracting/models/stock_move.py +++ b/addons/mrp_subcontracting/models/stock_move.py @@ -88,7 +88,7 @@ class StockMove(models.Model): 'name': _('Raw Materials for %s') % (self.product_id.display_name), 'type': 'ir.actions.act_window', 'res_model': 'stock.move', - 'views': [(tree_view.id, 'tree'), (form_view.id, 'form')], + 'views': [(tree_view.id, 'list'), (form_view.id, 'form')], 'target': 'current', 'domain': [('id', 'in', moves.ids)], }