title: how to locate the new added field in Openerp when two of parent view's fields are repetitive?
body: <p>I'm new to Openerp v 7.0,when I was trying to add one field in my inherited view, it didn't work. I found in parent view ,there were two fields has the same name , does this reason cause the problem? </p>
  
  <p>here is the parent view code:</p>
  
  <pre><code>&lt;page string="Contacts" attrs="{'invisible': [('is_company','=',False), ('child_ids', '=', [])]}" autofocus="autofocus"&gt;
                          &lt;field name="child_ids" mode="kanban" context="{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier}"&gt;
                              &lt;kanban&gt;
                                  &lt;field name="color"/&gt;
                                  &lt;field name="name"/&gt;
                                  &lt;field name="title"/&gt;
                                  &lt;field name="email"/&gt;
                                  &lt;field name="parent_id"/&gt;
                                  &lt;field name="is_company"/&gt;
                                  &lt;field name="function"/&gt;
                                  &lt;field name="phone"/&gt;
                                  &lt;field name="street"/&gt;
                                  &lt;field name="street2"/&gt;
                                  &lt;field name="zip"/&gt;
                                  &lt;field name="city"/&gt;
                                  &lt;field name="country_id"/&gt;
                                  &lt;field name="mobile"/&gt;
                                  &lt;field name="fax"/&gt;
                                  &lt;field name="state_id"/&gt;
                                  &lt;field name="has_image"/&gt;
                                  &lt;templates&gt;
                                      &lt;t t-name="kanban-box"&gt;
                                          &lt;t t-set="color" t-value="kanban_color(record.color.raw_value)"/&gt;
                                          &lt;div t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '')" style="position: relative"&gt;
                                              &lt;a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block"&gt;X&lt;/a&gt;
                                              &lt;div class="oe_module_vignette"&gt;
                                              &lt;a type="open"&gt;
                                                  &lt;t t-if="record.has_image.raw_value === true"&gt;
                                                      &lt;img t-att-src="kanban_image('res.partner', 'image', record.id.value, {'preview_image': 'image_small'})" class="oe_avatar oe_kanban_avatar_smallbox"/&gt;
                                                  &lt;/t&gt;
                                                  &lt;t t-if="record.image and record.image.raw_value !== false"&gt;
                                                      &lt;img t-att-src="'data:image/png;base64,'+record.image.raw_value" class="oe_avatar oe_kanban_avatar_smallbox"/&gt;
                                                  &lt;/t&gt;
                                                  &lt;t t-if="record.has_image.raw_value === false and (!record.image or record.image.raw_value === false)"&gt;
                                                      &lt;t t-if="record.is_company.raw_value === true"&gt;
                                                          &lt;img t-att-src='_s + "/base/static/src/img/company_image.png"' class="oe_kanban_image oe_kanban_avatar_smallbox"/&gt;
                                                      &lt;/t&gt;
                                                      &lt;t t-if="record.is_company.raw_value === false"&gt;
                                                          &lt;img t-att-src='_s + "/base/static/src/img/avatar.png"' class="oe_kanban_image oe_kanban_avatar_smallbox"/&gt;
                                                      &lt;/t&gt;
                                                  &lt;/t&gt;
                                              &lt;/a&gt;
                                                  &lt;div class="oe_module_desc"&gt;
                                                      &lt;div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_color_border"&gt;
                                                          &lt;table class="oe_kanban_table"&gt;
                                                              &lt;tr&gt;
                                                                  &lt;td class="oe_kanban_title1" align="left" valign="middle"&gt;
                                                                      &lt;h4&gt;&lt;a type="open"&gt;&lt;field name="name"/&gt;&lt;/a&gt;&lt;/h4&gt;
                                                                      &lt;i&gt;&lt;div t-if="record.function.raw_value"&gt;
                                                                          &lt;field name="function"/&gt;&lt;/div&gt;&lt;/i&gt;
                                                                      &lt;div&gt;&lt;a t-if="record.email.raw_value" title="Mail" t-att-href="'mailto:'+record.email.value"&gt;
                                                                          &lt;field name="email"/&gt;
                                                                      &lt;/a&gt;&lt;/div&gt;
                                                                      &lt;div t-if="record.phone.raw_value"&gt;Phone: &lt;field name="phone"/&gt;&lt;/div&gt;
                                                                      &lt;div t-if="record.mobile.raw_value"&gt;Mobile: &lt;field name="mobile"/&gt;&lt;/div&gt;
                                                                      &lt;div t-if="record.fax.raw_value"&gt;Fax: &lt;field name="fax"/&gt;&lt;/div&gt;
                                                                  &lt;/td&gt;
                                                              &lt;/tr&gt;
                                                          &lt;/table&gt;
                                                      &lt;/div&gt;
                                                  &lt;/div&gt;
                                              &lt;/div&gt;
                                          &lt;/div&gt;
                                      &lt;/t&gt;
                                  &lt;/templates&gt;
                              &lt;/kanban&gt;
                              &lt;form string="Contact" version="7.0"&gt;
                                  &lt;sheet&gt;
                                      &lt;field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/&gt;
                                      &lt;div class="oe_title"&gt;
                                          &lt;label for="name" class="oe_edit_only"/&gt;
                                          &lt;h1&gt;&lt;field name="name" style="width: 70%%"/&gt;&lt;/h1&gt;
                                          &lt;field name="category_id" widget="many2many_tags" placeholder="Tags..." style="width: 70%%"/&gt;
                                      &lt;/div&gt;
                                      &lt;group&gt;
                                          &lt;field name="function" placeholder="e.g. Sales Director"/&gt;
                                          &lt;field name="email"/&gt;
                                          &lt;field name="phone"/&gt;
                                          &lt;field name="mobile"/&gt;
                                      &lt;/group&gt;
                                      &lt;div&gt;
                                          &lt;field name="use_parent_address"/&gt;&lt;label for="use_parent_address"/&gt;
                                      &lt;/div&gt;
                                      &lt;group&gt;
                                          &lt;label for="type"/&gt;
                                          &lt;div name="div_type"&gt;
                                              &lt;field class="oe_inline" name="type"/&gt;
                                          &lt;/div&gt;
                                          &lt;label for="street" string="Address" attrs="{'invisible': [('use_parent_address','=', True)]}"/&gt;
                                          &lt;div attrs="{'invisible': [('use_parent_address','=', True)]}" name="div_address"&gt;
                                              &lt;field name="street" placeholder="Street..."/&gt;
                                              &lt;field name="street2"/&gt;
                                              &lt;div class="address_format"&gt;
                                                  &lt;field name="city" placeholder="City" style="width: 40%%"/&gt;
                                                  &lt;field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options='{"no_open": True}' on_change="onchange_state(state_id)"/&gt;
                                                  &lt;field name="zip" placeholder="ZIP" style="width: 20%%"/&gt;
                                              &lt;/div&gt;
                                              &lt;field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}'/&gt;
                                          &lt;/div&gt;
                                      &lt;/group&gt;
                                      &lt;field name="supplier" invisible="True"/&gt; &lt;-------------- 1st one
                                  &lt;/sheet&gt;
                              &lt;/form&gt;
                          &lt;/field&gt;
                      &lt;/page&gt;
  
   &lt;page string="Sales &amp;amp; Purchases"&gt;
                          &lt;group&gt;
                              &lt;group&gt;
                                  &lt;field name="user_id"/&gt;
                                  &lt;field name="company_id" groups="base.group_multi_company" widget="selection"/&gt;
                              &lt;/group&gt;
                              &lt;group&gt;
                                  &lt;field name="customer"/&gt; 
                                  &lt;field name="supplier"/&gt;&lt;-----------------2nd one
                              &lt;/group&gt;
                              &lt;group&gt;
                                  &lt;field name="ref"/&gt;
                                  &lt;field name="lang"/&gt;
                                  &lt;field name="date"/&gt;
                              &lt;/group&gt;
                              &lt;group&gt;
                                  &lt;field name="active"/&gt;
                              &lt;/group&gt;
                          &lt;/group&gt;
                      &lt;/page&gt;
                ……
  </code></pre>
  
  <p>there are two fields  like  in above code. what I wanted to do was added a new field name "product_categ_id" after the field. but it didn't work. here are my codes</p>
  
  <pre><code>&lt;openerp&gt;
  &lt;data&gt;
      &lt;record model="ir.ui.view" id="rainsoft_partner_form_view"&gt;
          &lt;field name="name"&gt;rainsoft_partner.rainsoft_partner&lt;/field&gt;
          &lt;field name="type"&gt;form&lt;/field&gt;
          &lt;field name="model"&gt;res.partner&lt;/field&gt;
          &lt;field name="inherit_id" ref="base.view_partner_form"/&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;field name="title" position="after"&gt;
                  &lt;field name="QQ" placeholder="input your QQ number here."/&gt;
                 &lt;!--&lt;field name="product_categ_id"/&gt;--&gt;
              &lt;/field&gt;
              &lt;field name="supplier" position="after"&gt; &lt;-------------it doesn't work
                  &lt;field name="product_categ_id"/&gt;
              &lt;/field&gt;
              &lt;field name="date" position="replace"&gt;
                  &lt;field name="date" string="合同开始日期"/&gt;
              &lt;/field&gt;
              &lt;field name="date" position="after"&gt;
                  &lt;field name="contract_end_date" string="合同结束日期" /&gt;
              &lt;/field&gt;
          &lt;/field&gt;
      &lt;/record&gt;
      &lt;record model="ir.ui.view" id="rainsoft_partner_tree_view"&gt;
          &lt;field name="name"&gt;rainsoft_partner.rainsoft_partner&lt;/field&gt;
          &lt;field name="type"&gt;tree&lt;/field&gt;
          &lt;field name="model"&gt;res.partner&lt;/field&gt;
          &lt;field name="inherit_id" ref="base.view_partner_tree"/&gt;
          &lt;field name="arch" type="xml"&gt;
                  &lt;field name="name" position="before" &gt;
                      &lt;field name="ref" string="No"/&gt;
                  &lt;/field&gt;
          &lt;/field&gt;
      &lt;/record&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p></p>
  
  <p>but when I replace " name='supplier' " by " name='customer' " it works, I guess coz the "customer" only show once in the code.</p>
  
  <p>Anyone here has the resolution? Thanks a lot.</p>