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

A css error occured, using an old style to render this page odoo18

Iscriviti

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

La domanda è stata contrassegnata
odoo18OwlError
3 Risposte
4343 Visualizzazioni
Avatar
med th

Odoo18, ubuntu 24
Follow the chapter 1 Owl components.
I got this error : A css error occured, using an old style to render this page in the page
and these errors in the console : 
OwlError@http://marinos:8069/web/assets/c9b3954/awesome_owl.assets_playground.min.js:715:1
Uncaught (in promise) Error: Missing template: "awesome_owl.playground" (for component "Playground")

tutorials folder is in the root folder next to odoo-bin

and it is set in odoo.conf file : 

[options]
addons_path = /home/alchemycode/Desktop/Alchemy/odoo/odoo18/odoo/addons,
/home/alchemycode/Desktop/Alchemy/odoo/odoo18/odoo/custom_addons,
/home/alchemycode/Desktop/Alchemy/odoo/odoo18/tutorials
db_host = localhost
db_port = 5432
db_user = odoo_alchemy
db_password = odoo_alchemy
default_productivity_apps = True
admin_passwd = $pbkdf2-sha512$600000$EIIwxvhfy7lXCmFMSclZaw$sDHADZ64zMqevCyyinBgu5zQdF41vD6r9OA3zHYWeUKRW8KjVGQT2p.wZs6XRymg1YYz85GIm6t0m.PjvsEzVQ

Any help for this problem 
i did not anything just follow the first step which is install awesome_owl module and visit localhost:8069/awesome_owl
Thanks in advance

0
Avatar
Abbandona
Avatar
med th
Autore Risposta migliore

@Nikhil Nakrani
Thanks for answering.
But i used the same awesome_owl repo 18.0.
And still get these errors
----------------------------------------------------
Ok i found a solution : 
for the old style error : A css error occured, using an old style to render this page in the page
(1) In the manifest file : 

change this : 

'assets': {
'awesome_owl.assets_playground': [
# bootstrap
('include', 'web._assets_helpers'), #let
'web/static/src/scss/pre_variables.scss', #let
'web/static/lib/bootstrap/scss/_variables.scss',#let
('include', 'web._assets_bootstrap_backend'),# get rid of

# required for fa icons
'web/static/src/libs/fontawesome/css/font-awesome.css', # let

# include base files from framework
('include', 'web._assets_core'),# let

'web/static/src/core/utils/functions.js',# get rid of
'web/static/src/core/browser/browser.js',# get rid of
'web/static/src/core/registry.js',# get rid of
'web/static/src/core/assets.js',# get rid of
'awesome_owl/static/src/**/*', # let
],
},

To this : 

'assets': {
'awesome_owl.assets_playground': [
('include', 'web._assets_helpers'),
'web/static/src/scss/pre_variables.scss',
'web/static/lib/bootstrap/scss/_variables.scss',
'web/static/lib/bootstrap/scss/_maps.scss', # add this
('include', 'web._assets_bootstrap'),# add this
('include', 'web._assets_core'),# add this
'web/static/src/libs/fontawesome/css/font-awesome.css',
'awesome_owl/static/src/**/*',
],
},

And in main js file : (The problem of not displaying hello world)
change this : 

import { browser } from "@web/core/browser/browser";
import { mount, whenReady } from "@odoo/owl";
import { Playground } from "./playground";
import { templates } from "@web/core/assets";

// Mount the Playground component when the document.body is ready
whenReady( () => {
mount(Playground, document.body, { templates, dev: true, name: "Owl Tutorial" });
});

To this : 

import { browser } from "@web/core/browser/browser";
import { mount, whenReady } from "@odoo/owl";
import { mountComponent } from "@web/env";

import { Playground } from "./playground";
import { templates } from "@web/core/assets";

// Mount the Playground component when the document.body is ready
whenReady( () => {
mountComponent(Playground, document.body, { templates, dev: true, name: "Owl Tutorial" });
});

PS: use mountComponent from @web/env instead of mount.
PS: @Nikhil Nakrani owl="1" didn't work
It worked for me This way

1
Avatar
Abbandona
Nikhil Nakrani

Hi,
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">

<t t-name="awesome_owl.playground">
<div class="p-3">
hello world
</div>
</t>

</templates>

// try this way here

<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">

<t t-name="awesome_owl.playground" owl="1">
<div class="p-3">
hello world
</div>
</t>

</templates>

template the owl="1" attribute in the definition.

Avatar
Luis Valentin Domé
Risposta migliore

I have the same problem, I just clone the repo and run the module, then I get "Uncaught Error (in promise): Missing template: "awesome_owl.playground" (for component "Playground")" in the browser, I use Debian 12 and Mozilla Firefox and Chrome

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à
OwlError: Invalid props for component 'ActionpadWidget': unknown key 'disabled' Risolto
pos odoo18 OwlError
Avatar
1
apr 25
2055
POS order line custom field (serial_id) not synced to backend after payment (Odoo 18)
odoo18
Avatar
Avatar
1
nov 25
429
Auto Session time out for users ODOO 18
odoo18
Avatar
Avatar
Avatar
2
set 25
3208
Odoo18,in list view,select a record,from 'Actions' menu,select 'Delete',doesn't work properly
odoo18
Avatar
Avatar
1
ago 25
2523
How to share cash payment method with all the Shop point in POS module in Odoo 18?
odoo18
Avatar
Avatar
1
ago 25
1497
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