Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

External ID not found in the system: web.assets_backend

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
themeassetsbackend
2 Răspunsuri
10577 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Marco Zanella
Autor

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>

Imagine profil
Parth Tilokani
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
souha chalbi
Cel mai bun răspuns

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

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Cannot install vista backend theme
theme backend
Imagine profil
0
iul. 22
2773
Dark Mode on backend for Enterprise Edition? Rezolvat
theme backend darkmode
Imagine profil
Imagine profil
Imagine profil
2
apr. 24
6707
Odoo 16 EE: how i restore original backend theme completely
theme backend odoo16features
Imagine profil
Imagine profil
1
sept. 23
4541
Restore the backend theme
theme backend restoration
Imagine profil
Imagine profil
2
apr. 22
4786
Odoo Backend Theme Development
mobile theme backend
Imagine profil
0
dec. 18
4093
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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