title: Error: "External ID not found in the system" in OpenERP
body: <p>When trying to install a module I am getting an error. I believe the External ID refers to view_id:</p>
  
  <pre><code>raise ValueError('External ID not found in the system: %s' % (xmlid))
  ParseError: "External ID not found in the system: nk_test.bom_where_use_form" while parsing /opt/odoo/odoo/addons/nk_test/mrp_where_bom.xml:4, near
  &lt;record id="action3" model="ir.actions.act_window"&gt;
              &lt;field name="name"&gt;Where Use&lt;/field&gt;
              &lt;field name="type"&gt;ir.actions.act_window&lt;/field&gt;
              &lt;field name="res_model"&gt;product.template&lt;/field&gt;            
              &lt;field name="view_type"&gt;form&lt;/field&gt;
              &lt;field name="target"&gt;new&lt;/field&gt;
              &lt;field name="view_id" ref="bom_where_use_form"/&gt;
          &lt;/record&gt;
  </code></pre>
  
  <p>Here is my xml file. The form "bom_where_use_form" is defined and I don't know why it is not visible.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;openerp&gt;
      &lt;data&gt;
           &lt;record id="action3" model="ir.actions.act_window"&gt;
              &lt;field name="name"&gt;Where Use&lt;/field&gt;
              &lt;field name="type"&gt;ir.actions.act_window&lt;/field&gt;
              &lt;field name="res_model"&gt;product.template&lt;/field&gt;            
              &lt;field name="view_type"&gt;form&lt;/field&gt;
              &lt;field name="target"&gt;new&lt;/field&gt;
              &lt;field name="view_id" ref="bom_where_use_form"/&gt;
          &lt;/record&gt;
          &lt;record id="ir_BOM_structure3" model="ir.values"&gt;
              &lt;field eval="'client_action_multi'" name="key2"/&gt;
              &lt;field eval="'product.template'" name="model"/&gt;
              &lt;field name="name"&gt;Where Use&lt;/field&gt;
              &lt;field eval="'ir.actions.act_window,'+str(action3)" name="value"/&gt;
          &lt;/record&gt;
  
  
          &lt;record id="action4" model="ir.actions.act_window"&gt;
              &lt;field name="name"&gt;Where Use&lt;/field&gt;
              &lt;field name="type"&gt;ir.actions.act_window&lt;/field&gt;
              &lt;field name="res_model"&gt;product.product&lt;/field&gt;            
              &lt;field name="view_type"&gt;form&lt;/field&gt;
              &lt;field name="target"&gt;new&lt;/field&gt;
              &lt;field name="view_id" ref="bom_where_use_form"/&gt;
          &lt;/record&gt;
          &lt;record id="ir_BOM_structure4" model="ir.values"&gt;
              &lt;field eval="'client_action_multi'" name="key2"/&gt;
              &lt;field eval="'product.product'" name="model"/&gt;
              &lt;field name="name"&gt;Where Use&lt;/field&gt;
              &lt;field eval="'ir.actions.act_window,'+str(action4)" name="value"/&gt;
          &lt;/record&gt;
  
  
           &lt;record id="bom_where_use_form" model="ir.ui.view"&gt;
              &lt;field name="name"&gt;bom.where.use.form&lt;/field&gt;
              &lt;field name="model"&gt;product.template&lt;/field&gt;
              &lt;field name="priority" eval="20"/&gt;
              &lt;field name="type"&gt;form&lt;/field&gt;
              &lt;field name="arch" type="xml"&gt;
  
                  &lt;field name="text_field" on_change="onchange_template_id(100)" readonly="1" /&gt; 
              &lt;/field&gt; 
           &lt;/record&gt;
  
      &lt;/data&gt;
  &lt;/openerp&gt;
  </code></pre>
  
  <p>I am wondering what is missing. </p>