title: Odoo Error when installing Addon : View Inheritance Error
body: <p>At the moment I am working on an addon for the timesheet_grid module for odoo13.
  I came across this problem, cant find any solution. I think it says the view name is already taken, is this right ?</p>
  <p>My code</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  
  &lt;odoo&gt;
  
      &lt;record id=&quot;timesheet_view_grid_addon_by_project&quot; model=&quot;ir.ui.view&quot;&gt;
          &lt;field name=&quot;name&quot;&gt;timesheet.view.grid.by.project.addon&lt;/field&gt;
          &lt;field name=&quot;model&quot;&gt;account.analytic.line&lt;/field&gt;
          &lt;field name=&quot;inherit_id&quot; ref=&quot;timesheet_grid.timesheet_view_grid_by_project&quot;/&gt;
          &lt;grid string=&quot;Timesheets&quot; adjustment=&quot;object&quot; adjust_name=&quot;adjust_grid&quot;&gt;
            &lt;xpath expr=&quot;//field[@name='project_id']&quot; position=&quot;replace&quot;&gt;
            &lt;field name=&quot;project_id&quot; type=&quot;row&quot; section=&quot;1&quot; color=&quot;blue !important&quot;/&gt;
            &lt;/xpath&gt;
          &lt;/grid&gt;
      &lt;/record&gt;
  &lt;/odoo&gt;
  
  </code></pre>
  <p>Error Message:</p>
  <pre><code>Odoo Server Error
  Traceback (most recent call last):
    File &quot;/usr/lib/python3/dist-packages/odoo/http.py&quot;, line 624, in _handle_exception
      return super(JsonRequest, self)._handle_exception(exception)
    File &quot;/usr/lib/python3/dist-packages/odoo/http.py&quot;, line 310, in _handle_exception
      raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
    File &quot;/usr/lib/python3/dist-packages/odoo/tools/pycompat.py&quot;, line 14, in reraise
      raise value
    File &quot;/usr/lib/python3/dist-packages/odoo/http.py&quot;, line 669, in dispatch
      result = self._call_function(**self.params)
    File &quot;/usr/lib/python3/dist-packages/odoo/http.py&quot;, line 350, in _call_function
      return checked_call(self.db, *args, **kwargs)
    File &quot;/usr/lib/python3/dist-packages/odoo/service/model.py&quot;, line 94, in wrapper
      return f(dbname, *args, **kwargs)
    File &quot;/usr/lib/python3/dist-packages/odoo/http.py&quot;, line 339, in checked_call
      result = self.endpoint(*a, **kw)
    File &quot;/usr/lib/python3/dist-packages/odoo/http.py&quot;, line 915, in __call__
      return self.method(*args, **kw)
    File &quot;/usr/lib/python3/dist-packages/odoo/http.py&quot;, line 515, in response_wrap
      response = f(*args, **kw)
    File &quot;/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py&quot;, line 1331, in call_button
      action = self._call_kw(model, method, args, kwargs)
    File &quot;/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py&quot;, line 1319, in _call_kw
      return call_kw(request.env[model], method, args, kwargs)
    File &quot;/usr/lib/python3/dist-packages/odoo/api.py&quot;, line 387, in call_kw
      result = _call_kw_multi(method, model, args, kwargs)
    File &quot;/usr/lib/python3/dist-packages/odoo/api.py&quot;, line 374, in _call_kw_multi
      result = method(recs, *args, **kwargs)
    File &quot;&lt;decorator-gen-60&gt;&quot;, line 2, in button_immediate_install
    File &quot;/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py&quot;, line 72, in check_and_log
      return method(self, *args, **kwargs)
    File &quot;/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py&quot;, line 463, in button_immediate_install
      return self._button_immediate_function(type(self).button_install)
    File &quot;/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py&quot;, line 573, in _button_immediate_function
      modules.registry.Registry.new(self._cr.dbname, update_module=True)
    File &quot;/usr/lib/python3/dist-packages/odoo/modules/registry.py&quot;, line 86, in new
      odoo.modules.load_modules(registry._db, force_demo, status, update_module)
    File &quot;/usr/lib/python3/dist-packages/odoo/modules/loading.py&quot;, line 421, in load_modules
      processed_modules += load_marked_modules(cr, graph,
    File &quot;/usr/lib/python3/dist-packages/odoo/modules/loading.py&quot;, line 313, in load_marked_modules
      loaded, processed = load_module_graph(
    File &quot;/usr/lib/python3/dist-packages/odoo/modules/loading.py&quot;, line 225, in load_module_graph
      load_data(cr, idref, mode, kind='data', package=package, report=report)
    File &quot;/usr/lib/python3/dist-packages/odoo/modules/loading.py&quot;, line 68, in load_data
      tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
    File &quot;/usr/lib/python3/dist-packages/odoo/tools/convert.py&quot;, line 736, in convert_file
      convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
    File &quot;/usr/lib/python3/dist-packages/odoo/tools/convert.py&quot;, line 786, in convert_xml_import
      relaxng.assert_(doc)
    File &quot;src/lxml/etree.pyx&quot;, line 3631, in lxml.etree._Validator.assert_
  **AssertionError: Element odoo has extra content: record, line 5**
  </code></pre>
  <p>As I said i think it´s something with the View ID, isnt it? I tried changing the name but no luck.
  Thank you I would appreciate any help or advices.
  for-loop</p>