title: Element not found in parent view (ODOO 12)
body: <p>i'm working on odoo 12 (python 3.6) and i'm trying to inherit from the product.template and hide the barcode field , but i had this error:</p>
  
  <pre><code>element'&lt;xpath expr="//field[@name='barcode']"&gt;' not found in parent view
  </code></pre>
  
  <p>this is my gesimmo_views.xml</p>
  
  <pre><code>&lt;odoo&gt;
      &lt;record model="ir.ui.view" id="view_form_gesimmo"&gt;
        &lt;field name="name"&gt;Product&lt;/field&gt;
        &lt;field name="model"&gt;product.template&lt;/field&gt;
          &lt;field name="inherit_id" ref="product.product_template_form_view"/&gt;
        &lt;field name="arch" type="xml"&gt;
            &lt;xpath expr="//field[@name='standard_price']" position="after"&gt;
                &lt;group&gt;
                &lt;field name="surface"/&gt;
                    &lt;!--&lt;field name="refimmo"/&gt;!--&gt;
                &lt;/group&gt;
            &lt;/xpath&gt;
            &lt;xpath expr="//field[@name='barcode']" position="attributes"&gt;
               &lt;attribute name="invisible"&gt;1&lt;/attribute&gt;
        &lt;/xpath&gt;
        &lt;/field&gt;
      &lt;/record&gt;
  &lt;/odoo&gt;
  </code></pre>
  
  <p><strong>PLEASE HELP !</strong></p>