summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2019-10-08 14:02:30 +0000
committerArnold Moyaux <arm@odoo.com>2019-10-16 07:58:12 +0000
commitec5e63cf80f64c47e1fcaa3d4560c930860d0a3b (patch)
tree5a6e6774e8d5f81772d007a64884785fd1bba7f4 /addons
parentc8cbf8cc0e4680852bc64fbb77f31be3bb2a2dbd (diff)
[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.
Diffstat (limited to 'addons')
-rw-r--r--addons/mrp_subcontracting/models/stock_move.py2
1 files changed, 1 insertions, 1 deletions
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)],
}