Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

External ID not found in the system: web.assets_backend

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
themeassetsbackend
2 Risposte
10528 Visualizzazioni
Avatar
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
Avatar
Abbandona
Marco Zanella
Autore

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>

Avatar
Parth Tilokani
Risposta migliore

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
Avatar
Abbandona
Avatar
souha chalbi
Risposta migliore

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

0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Cannot install vista backend theme
theme backend
Avatar
0
lug 22
2758
Dark Mode on backend for Enterprise Edition? Risolto
theme backend darkmode
Avatar
Avatar
Avatar
2
apr 24
6691
Odoo 16 EE: how i restore original backend theme completely
theme backend odoo16features
Avatar
Avatar
1
set 23
4521
Restore the backend theme
theme backend restoration
Avatar
Avatar
2
apr 22
4778
Odoo Backend Theme Development
mobile theme backend
Avatar
0
dic 18
4080
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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