Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    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 Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & 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
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
odoo18OwlError
3 Odgovori
4308 Prikazi
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
Opusti
Avatar
med th
Avtor Best Answer

@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
Opusti
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é
Best Answer

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
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
OwlError: Invalid props for component 'ActionpadWidget': unknown key 'disabled' Solved
pos odoo18 OwlError
Avatar
1
apr. 25
2028
POS order line custom field (serial_id) not synced to backend after payment (Odoo 18)
odoo18
Avatar
Avatar
1
nov. 25
401
Auto Session time out for users ODOO 18
odoo18
Avatar
Avatar
Avatar
2
sep. 25
3169
Odoo18,in list view,select a record,from 'Actions' menu,select 'Delete',doesn't work properly
odoo18
Avatar
Avatar
1
avg. 25
2493
How to share cash payment method with all the Shop point in POS module in Odoo 18?
odoo18
Avatar
Avatar
1
avg. 25
1471
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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