title: ValueError: External ID not found in the system: website.assets_frontend
body: <p>I am in the process of upgrading from Odoo V13 to V15 and I am getting an error when building my staging branch because of a custom module I wrote to change some styling.</p>
  <p>How can I fix the following errors</p>
  <pre><code>File &quot;/home/odoo/src/odoo/odoo/addons/base/models/ir_model.py&quot;, line 1928, in _xmlid_lookup
      raise ValueError('External ID not found in the system: %s' % xmlid)
  ValueError: External ID not found in the system: website.assets_frontend
  </code></pre>
  <pre><code>File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 693, in _tag_root
      raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
  odoo.tools.convert.ParseError: while parsing None:4, somewhere inside
  &lt;data inherit_id=&quot;website.assets_frontend&quot; name=&quot;Profile Frontend Assets&quot;&gt;
              &lt;xpath expr=&quot;//link[last()]&quot; position=&quot;after&quot;&gt;
                   &lt;link rel=&quot;stylesheet&quot; type=&quot;text/scss&quot; href=&quot;/website_profile_scss_customization/static/src/scss/website_profile.scss&quot; t-ignore=&quot;true&quot;/&gt;
          &lt;/xpath&gt;
      &lt;/data&gt;
  </code></pre>
  <p>Full error output</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/odoo/src/odoo/odoo/tools/cache.py&quot;, line 85, in lookup
      r = d[key]
    File &quot;/home/odoo/src/odoo/odoo/tools/func.py&quot;, line 71, in wrapper
      return func(self, *args, **kwargs)
    File &quot;/home/odoo/src/odoo/odoo/tools/lru.py&quot;, line 34, in __getitem__
      a = self.d[obj]
  KeyError: ('ir.model.data', &lt;function IrModelData._xmlid_lookup at 0x7f3e2ef8ee50&gt;, 'website.assets_frontend')
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 680, in _tag_root
      f(rec)
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 658, in _tag_template
      return self._tag_record(record)
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 567, in _tag_record
      f_val = self.id_get(f_ref)
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 663, in id_get
      res = self.model_id_get(id_str, raise_if_not_found)
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 669, in model_id_get
      return self.env['ir.model.data']._xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
    File &quot;/home/odoo/src/odoo/odoo/addons/base/models/ir_model.py&quot;, line 1935, in _xmlid_to_res_model_res_id
      return self._xmlid_lookup(xmlid)[1:3]
    File &quot;&lt;decorator-gen-35&gt;&quot;, line 2, in _xmlid_lookup
    File &quot;/home/odoo/src/odoo/odoo/tools/cache.py&quot;, line 90, in lookup
      value = d[key] = self.method(*args, **kwargs)
    File &quot;/home/odoo/src/odoo/odoo/addons/base/models/ir_model.py&quot;, line 1928, in _xmlid_lookup
      raise ValueError('External ID not found in the system: %s' % xmlid)
  ValueError: External ID not found in the system: website.assets_frontend
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File &quot;/home/odoo/src/odoo/odoo/service/server.py&quot;, line 1246, in preload_registries
      registry = Registry.new(dbname, update_module=update_module)
    File &quot;/home/odoo/src/odoo/odoo/modules/registry.py&quot;, line 87, in new
      odoo.modules.load_modules(registry, force_demo, status, update_module)
    File &quot;/home/odoo/src/odoo/odoo/modules/loading.py&quot;, line 470, in load_modules
      processed_modules += load_marked_modules(cr, graph,
    File &quot;/home/odoo/src/odoo/odoo/modules/loading.py&quot;, line 363, in load_marked_modules
      loaded, processed = load_module_graph(
    File &quot;/home/odoo/src/odoo/odoo/modules/loading.py&quot;, line 222, in load_module_graph
      load_data(cr, idref, mode, kind='data', package=package)
    File &quot;/home/odoo/src/odoo/odoo/modules/loading.py&quot;, line 69, in load_data
      tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 745, in convert_file
      convert_xml_import(cr, module, fp, idref, mode, noupdate)
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 811, in convert_xml_import
      obj.parse(doc.getroot())
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 731, in parse
      self._tag_root(de)
    File &quot;/home/odoo/src/odoo/odoo/tools/convert.py&quot;, line 693, in _tag_root
      raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
  odoo.tools.convert.ParseError: while parsing None:4, somewhere inside
  &lt;data inherit_id=&quot;website.assets_frontend&quot; name=&quot;Profile Frontend Assets&quot;&gt;
              &lt;xpath expr=&quot;//link[last()]&quot; position=&quot;after&quot;&gt;
                   &lt;link rel=&quot;stylesheet&quot; type=&quot;text/scss&quot; href=&quot;/website_profile_scss_customization/static/src/scss/website_profile.scss&quot; t-ignore=&quot;true&quot;/&gt;
          &lt;/xpath&gt;
      &lt;/data&gt;
  the shutdown. 
  odoo-bin process returned error code 255.
  </code></pre>
  <p>src/user/website_profile_scss_customization/<strong>manifest</strong>.py</p>
  <pre><code>{
      'name': &quot;Website Profile SCSS Customization&quot;,
      'version': '1.0',
      'depends': ['website_profile'],
      'author': &quot;ES&quot;,
      'category': 'Category',
          'description': &quot;&quot;&quot;Customize SCSS for Website Profile (for e-learning module) to match our branding&quot;&quot;&quot;,
      # data files always loaded at installation
      'data': [
          'views/assets.xml',
      ],
  }
  </code></pre>
  <p>src/user/website_profile_scss_customization/views/assets.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;odoo&gt;
  
      &lt;template id=&quot;assets_frontend&quot; inherit_id=&quot;website.assets_frontend&quot; name=&quot;Profile Frontend Assets&quot;&gt;
              &lt;xpath expr=&quot;//link[last()]&quot; position=&quot;after&quot;&gt;
                   &lt;link rel=&quot;stylesheet&quot; type=&quot;text/scss&quot; href=&quot;/website_profile_scss_customization/static/src/scss/website_profile.scss&quot; t-ignore=&quot;true&quot;/&gt;
          &lt;/xpath&gt;
      &lt;/template&gt;
      
  &lt;/odoo&gt;
  </code></pre>
  <p>src/user/website_profile_scss_customization/static/src/scss/website_profile.scss</p>
  <pre><code>$esGreen: #0EAF56;
  
  element.style {
      background-image: linear-gradient(99deg, #0EAF56 10%, #0EAF56 90%) !important;
  
  }
  
  .o_wforum_forum_card_bg {
      background-image: linear-gradient(99deg, #0EAF56 10%, #0EAF56 90%) !important;
  }
  
  .s_parallax_bg {
      background-image: linear-gradient(99deg, #0EAF56 10%, #0EAF56 90%) !important;
  }
  
  .o_wprofile_nav_tabs {
      @include media-breakpoint-up(md)  {
          margin-top: $owprofile-tabs-height * -1;
          border-bottom: 0;
  
          .nav-link {
              border-radius: 0;
              border-width: 0 1px;
              line-height: $line-height-base;
              @include o-hover-text-color(rgba(white, 0.8), white);
  
              &amp;, &amp;:hover {
                  border-color: none !important;
                  background: transparent;
              }
  
              &amp;.active {
                  color: color-yiq($owprofile-color-bg);
                  background: $owprofile-color-bg;
                  border-color: $owprofile-color-bg;
              }
          }
      }
  
      @include media-breakpoint-only(xs) {
          overflow-x: auto;
          overflow-y: hidden;
  
          li {
              white-space: nowrap;
          }
      }
  }
  
  @media (min-width: 768px) {
      .o_wforum_elearning_navtabs_container {
          background-color: #0EAF56 !important;
      }
      
      .o_wprofile_nav_tabs .nav-link, .o_wprofile_nav_tabs .nav-link:hover {
          border-color: 0EAF56 !important;
          background: transparent;
      }
  }
  
  .o_wforum_elearning_navtabs_container {
      background-color: #0EAF56 !important;
  }
  
  .btn-secondary {
      color: white !important;
      background-color: #0EAF56 !important;
      border-color: #0EAF56 !important;
  }
  
  .btn-secondary.disabled, .btn-secondary:disabled {
      color: white !important;
      background-color: #0EAF56 !important;
      border-color: #0EAF56 !important;
  }
  
  @media (min-width: 768px) {
    .o_wprofile_nav_tabs .nav-link, .o_wprofile_nav_tabs .nav-link:hover {
      border-color: transparent !important;
      background: transparent;
    }
  }
  
  .o_wprofile_nav_tabs .nav-link, .o_wprofile_nav_tabs .nav-link:hover {
      border-color: transparent !important;
      background: transparent;
  }
  
  .o_forum_ask_btn {
      background: $esGreen !important;
  }
  </code></pre>