[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.
This commit is contained in:
Arnold Moyaux
2019-10-16 07:58:12 +00:00
parent c8cbf8cc0e
commit ec5e63cf80
@@ -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)],
}