diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-10-08 14:02:30 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2019-10-16 07:58:12 +0000 |
| commit | ec5e63cf80f64c47e1fcaa3d4560c930860d0a3b (patch) | |
| tree | 5a6e6774e8d5f81772d007a64884785fd1bba7f4 /addons/mrp_subcontracting/models | |
| parent | c8cbf8cc0e4680852bc64fbb77f31be3bb2a2dbd (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/mrp_subcontracting/models')
| -rw-r--r-- | addons/mrp_subcontracting/models/stock_move.py | 2 |
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)], } |
