title: TypeError: this.views_src[0] is undefined in openerp when returning view?
body: <p>I have an inherited module and I am trying to return </p>
  
  <pre><code>    view_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'product', 'product_product_tree_view')
      view_id = view_ref and view_ref[1] or False
      return {
     'type': 'ir.actions.act_window',
     'name': 'Draft Product',
     'res_model': 'product.product',
     'view_type': 'form',
     'view_id': view_id,
     'view_mode': 'tree',
     'target': 'current',
     'nodestroy': True,
  </code></pre>
  
  <p>}</p>
  
  <p>at the end of product inherited write method. But it throws an error </p>
  
  <blockquote>
    <p>TypeError: this.views_src[0] is undefined</p>
  </blockquote>
  
  <p>I am fed up doing this for a long time.. any help or workaround is appreciated.... I actually want after editing the form view to be returned to tree view.</p>
  
  <p>Thanks in advance..</p>