Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Consulting
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

External ID not found in the system: web.assets_backend

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
themeassetsbackend
2 Replies
10550 Rodiniai
Portretas
Marco Zanella

Hi, I am a newbie in Odoo development, we use odoo v16.0.

We want to be able to change the color of the backend by using a custom module. We searched the web and found some suggestions.

We have a custom module folder structure with __manifest__.py

My manifest file:

{
​'name': 'Better looking backend theme',
​'summary': 'Better Theme Backend',
​'description': 'Better backend theme',
​'category': 'Theme/Creative',
​'depends': ['base'],
​'author': 'Mickey Mouse',
​'data': [
​ ​'views/assets.xml',
​],
​'assets': {
​ ​"web.assets_backend": [
​ ​ ​'inx_backend_theme/static/src/css/theme.css',
​ ​ ​],
​ ​},
​ ​'images': [
​ ​ ​'static/description/icon.png',
​ ​​],
​ ​'installable': True,
​ ​'auto_install': False,
​ ​'application': True,
}



My assets.xml file



​
​ ​
​ ​ ​ ​
​ ​ ​ ​
​ ​ ​
​ ​
​


The css file

.o_main_navbar {
​background-color: #0071ce !important;
}


This is the log:

The log when attempting to Activate the module:
Traceback (most recent call last): File "/odoo/odoo/tools/cache.py", line 85, in lookup r = d[key] ~^^^^^ File "", line 2, in __getitem__ File "/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/odoo/odoo/tools/lru.py", line 34, in __getitem__ a = self.d[obj] ~~~~~~^^^^^ KeyError: ('ir.model.data', , 'web.assets_backend') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/odoo/odoo/tools/convert.py", line 698, in _tag_root f(rec) File "/odoo/odoo/tools/convert.py", line 676, in _tag_template return self._tag_record(record) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/odoo/odoo/tools/convert.py", line 568, in _tag_record f_val = self.id_get(f_ref, raise_if_not_found=nodeattr2bool(rec, 'forcecreate', True)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/odoo/odoo/tools/convert.py", line 681, in id_get res = self.model_id_get(id_str, raise_if_not_found) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/odoo/odoo/tools/convert.py", line 687, 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 "/odoo/odoo/addons/base/models/ir_model.py", line 2002, in _xmlid_to_res_model_res_id return self._xmlid_lookup(xmlid)[1:3] ^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 2, in _xmlid_lookup File "/odoo/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/odoo/odoo/addons/base/models/ir_model.py", line 1995, in _xmlid_lookup raise ValueError('External ID not found in the system: %s' % xmlid) ValueError: External ID not found in the system: web.assets_backend The above exception was the direct cause of the following exception:


When trying to Activate the module I get the above error. Again, we run Odoo CE v16.0

We need help to understand what's wrong

Thanks

0
Portretas
Atmesti
Marco Zanella
Autorius

the xml file is not visible, here it is
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<template id="inx_backend_theme" name="Backaend color theme changer" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/scss" href="/inx_backend_theme/static/src/css/theme.css"/>
</xpath>
</template>
</data>
</odoo>

Portretas
Parth Tilokani
Best Answer

you can use base_setup in depends instead of just base. I think your problem is that system is not recognizing the web.assets_backend id because of 2 reason I suppose

  • There would be spelling mistake
  • Web module is not mentioned in depends directly or indirectly.
1
Portretas
Atmesti
Portretas
souha chalbi
Best Answer

Good evening, 
just delete ​'views/assets.xml' from data.
Then this problem is solved.

0
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registracija
Related Posts Replies Rodiniai Veikla
Cannot install vista backend theme
theme backend
Portretas
0
liep. 22
2770
Dark Mode on backend for Enterprise Edition? Solved
theme backend darkmode
Portretas
Portretas
Portretas
2
bal. 24
6698
Odoo 16 EE: how i restore original backend theme completely
theme backend odoo16features
Portretas
Portretas
1
rugs. 23
4532
Restore the backend theme
theme backend restoration
Portretas
Portretas
2
bal. 22
4781
Odoo Backend Theme Development
mobile theme backend
Portretas
0
gruod. 18
4087
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now