title: OpenERP / Odoo Unexpected View Parsing error
body: <p>Hy all,</p>
  
  <p>I'm just doing my update from OpenERP 6.1 to Odoo8.
  I have a self written modul, I adapted the Python Code and everthings seems fine, I can also install the modul, but if i load a view i get the following error:</p>
  
  <pre><code>  File "./openerp/models.py", line 1295, in _validate_fields
  raise ValidationError('\n'.join(errors))
  ParseError: "ValidateError
  Field(s) `arch` failed against a constraint: Invalid view definition
  
  Error details:
       Element '&lt;xpath expr="//footer"&gt;' cannot be located in parent view
  
  Error context:
      View `mail.compose.message.form`
  [view_id: 248, xml_id: email_template.email_compose_message_wizard_inherit_form, model:     mail.compose.message, parent_id: 216]" while parsing /home/gsatter/Dokumente    /odoo/odoo/seekda_addons/seekda_mail_extension/wizard/mail_compose_view.xml:4, near
  
  &lt;record model="ir.ui.view" id="mail.email_compose_message_wizard_form"&gt;
          &lt;field name="name"&gt;mail.compose.message.form&lt;/field&gt;
          &lt;field name="model"&gt;mail.compose.message&lt;/field&gt;
          &lt;field name="type"&gt;form&lt;/field&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;form string="Compose Email"&gt;
                  &lt;group col="6" colspan="4"&gt;
                      &lt;field name="model" invisible="1"/&gt;
                      &lt;field name="res_id" invisible="1"/&gt;
                      &lt;field name="email_from" colspan="4" required="1"/&gt;
                      &lt;field name="email_to" colspan="4" required="1"/&gt;
                      &lt;field name="email_cc" colspan="4"/&gt;
                      &lt;field name="email_bcc" colspan="4"/&gt;
                      &lt;field name="reply_to" colspan="4"/&gt;
                      &lt;field name="subject" colspan="4" widget="char" size="512"/&gt;
                      &lt;field name="references" invisible="1"/&gt;
                      &lt;field name="message_id" invisible="1"/&gt;
                  &lt;/group&gt;
                  &lt;notebook colspan="4"&gt;
                      &lt;page string="Body"&gt;
                          &lt;field name="body_text" colspan="4" nolabel="1" height="300" width="300"/&gt;
                      &lt;/page&gt;
                      &lt;page string="Attachments"&gt;
                          &lt;field name="attachment_file_ids" colspan="4" nolabel="1" string="Files"&gt;
                              &lt;form&gt;
                                  &lt;field name="data" filename="name" colspan="4"/&gt;
                                  &lt;field name="name" colspan="4"/&gt;
                              &lt;/form&gt;
                              &lt;tree&gt;
                                  &lt;field name="data" filename="name" colspan="4"/&gt;
                                  &lt;field name="name" colspan="4"/&gt;
                              &lt;/tree&gt;
                          &lt;/field&gt;
                      &lt;/page&gt;
                  &lt;/notebook&gt;
                  &lt;group col="4" colspan="4"&gt;
                      &lt;label string="" name="placeholder" colspan="1"/&gt;
                      &lt;button icon="gtk-close" special="cancel" string="Cancel"/&gt;
                      &lt;button icon="gtk-ok" name="send_mail" string="Send" type="object"/&gt;
                  &lt;/group&gt;
              &lt;/form&gt;
          &lt;/field&gt;
      &lt;/record&gt;
  </code></pre>
  
  <p>Has anybody a idea what is wrong with this wizard?
  Here is my view (wizard):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;openerp&gt;
  &lt;data&gt;
      &lt;record model="ir.ui.view" id="mail.email_compose_message_wizard_form"&gt;
          &lt;field name="name"&gt;mail.compose.message.form&lt;/field&gt;
          &lt;field name="model"&gt;mail.compose.message&lt;/field&gt;
          &lt;field name="type"&gt;form&lt;/field&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;form string="Compose Email"&gt;
                  &lt;group col="6" colspan="4"&gt;
                      &lt;field name="model" invisible="1"/&gt;
                      &lt;field name="res_id" invisible="1"/&gt;
                      &lt;field name="email_from" colspan="4" required="1"/&gt;
                      &lt;field name="email_to" colspan="4" required="1"/&gt;
                      &lt;field name="email_cc" colspan="4"/&gt;
                      &lt;field name="email_bcc" colspan="4"/&gt;
                      &lt;field name="reply_to" colspan="4"/&gt;
                      &lt;field name="subject" colspan="4" widget="char" size="512"/&gt;
                      &lt;field name="references" invisible="1"/&gt;
                      &lt;field name="message_id" invisible="1"/&gt;
                  &lt;/group&gt;
                  &lt;notebook colspan="4"&gt;
                      &lt;page string="Body"&gt;
                          &lt;field name="body_text" colspan="4" nolabel="1" height="300" width="300"/&gt;
                      &lt;/page&gt;
                      &lt;page string="Attachments"&gt;
                          &lt;field name="attachment_file_ids" colspan="4" nolabel="1" string="Files"&gt;
                              &lt;form&gt;
                                  &lt;field name="data" filename="name" colspan="4"/&gt;
                                  &lt;field name="name" colspan="4"/&gt;
                              &lt;/form&gt;
                              &lt;tree&gt;
                                  &lt;field name="data" filename="name" colspan="4"/&gt;
                                  &lt;field name="name" colspan="4"/&gt;
                              &lt;/tree&gt;
                          &lt;/field&gt;
                      &lt;/page&gt;
                  &lt;/notebook&gt;
                  &lt;group col="4" colspan="4"&gt;
                      &lt;label string="" name="placeholder" colspan="1"/&gt;
                      &lt;button icon="gtk-close" special="cancel" string="Cancel"/&gt;
                      &lt;button icon="gtk-ok" name="send_mail" string="Send" type="object"/&gt;
                  &lt;/group&gt;
              &lt;/form&gt;
          &lt;/field&gt;
      &lt;/record&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p></p>
  
  <p>Her is a view which inherits the view top (it's located in the addon email_template):</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;openerp&gt;
        &lt;data&gt;
  
      &lt;record model="ir.ui.view" id="email_compose_message_wizard_inherit_form"&gt;
          &lt;field name="name"&gt;mail.compose.message.form&lt;/field&gt;
          &lt;field name="model"&gt;mail.compose.message&lt;/field&gt;
          &lt;field name="inherit_id" ref="mail.email_compose_message_wizard_form"/&gt;
          &lt;field name="groups_id" eval="[(4,ref('base.group_user'))]"/&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;xpath expr="//footer" position="inside"&gt;
                  &lt;group class="oe_right oe_form" col="1"&gt;
                      &lt;div&gt;Use template
                          &lt;!--FIX: To avoid css issue of many2one field in footer temporary used oe_form (BUG:1152464)--&gt;
                          &lt;field name="template_id" nolabel="1" class='oe_inline'
                              options="{'no_create': True}"
                              on_change="onchange_template_id(template_id, composition_mode, model, res_id, context)" domain="[('model_id.model','=',model)]"
                              context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/&gt;
                      &lt;/div&gt;
                      &lt;button icon="/email_template/static/src/img/email_template_save.png"
                          type="object" name="save_as_template" string="Save as new template" class="oe_link"
                          help="Save as a new template"/&gt;
                  &lt;/group&gt;
              &lt;/xpath&gt;
          &lt;/field&gt;
      &lt;/record&gt;
  
  &lt;/data&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thank You</p>