title: What is the right odoo 8 XML syntax for view_ids field
body: <p>I am trying to customize the crm lead object. Class is defined this way</p>
  
  <pre><code>class yvleads(models.Model):
   _inherit = 'crm.lead'
   _name = 'crm.lead'
  </code></pre>
  
  <p>Now I added a menu item to display the added elements for which I have both a tree view and a form view. I have added a lett menu item referening a ir.actions.act_window. When this action is defined as</p>
  
  <pre><code> &lt;record model="ir.actions.act_window" id="yvleads_mgt"&gt;
       &lt;field name="name"&gt;Leads Yves&lt;/field&gt;
       &lt;field name="res_model"&gt;crm.lead&lt;/field&gt;
       &lt;field name="view_type"&gt;form&lt;/field&gt;
       &lt;field name="view_mode"&gt;form,tree&lt;/field&gt;
       &lt;field name="view_id" ref="tree_view_yves_leads"/&gt;
   &lt;/record&gt;
  </code></pre>
  
  <p>this works fine for the list-tree view but when I click on any item or the create button, I get the default form view for crm.</p>
  
  <p>To add my customized view for form also, my understanding of <a href="https://www.odoo.com/documentation/8.0/reference/actions.html#notquitem2m" rel="nofollow">odoo documentation</a> is that I should use view_ids element but I was not able to get it right</p>
  
  <p>I have tried several syntaxes with/without brackets, using eval="" or inside the xml definition but with no success. Searching this forum for string name="view_ids" was not very helfull, may be it is not the best practice to do that? any help appreciated</p>
  
  <pre><code>&lt;record model="ir.actions.act_window" id="yvleads_mgt"&gt;
       &lt;field name="name"&gt;Leads Yves&lt;/field&gt;
       &lt;field name="res_model"&gt;crm.lead&lt;/field&gt;
       &lt;field name="view_type"&gt;form&lt;/field&gt;
       &lt;field name="view_mode"&gt;form,tree&lt;/field&gt;
       &lt;field name="view_ids"&gt;(tree,tree_view_yves_leads),(form,form_view_yves_leads)&lt;/field&gt;
          &lt;/record&gt;
  </code></pre>