Skip to Content
Odoo Menu
  • Sign in
  • 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
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Warnings Related to t-call-assets and Deprecated t-esc in Odoo 18 Dev Mode

Subscribe

Get notified when there's activity on this post

This question has been flagged
developmentdebug
2 Replies
3034 Views
Avatar
Piseth Chuon

I'm currently working on a custom module in Odoo 18 (dev version) and ran into several warnings when starting the server and updating my module:


WARNING odoo.addons.base.models.ir_qweb: Unknown directives or unused attributes: {'t-call-assets', 't-js'} in web.webclient_bootstrap 
WARNING odoo.addons.base.models.ir_qweb: Unknown directives or unused attributes: {'t-call-assets'} in web.webclient_bootstrap
WARNING odoo.addons.base.models.ir_qweb: Unknown directives or unused attributes: {'t-call-assets'} in web.conditional_assets_tests
WARNING odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc="title or 'Odoo'" in template 180. Replace by @t-out
WARNING odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='request.csrf_token(None)' in template 180. Replace by @t-out
WARNING odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='debug' in template 180. Replace by @t-out

  • I'm using web_icon="estate,static/description/icon.png" in my menuitem.

  • I recently re-created the static directory after accidentally deleting it.

  • These warnings appear even after clearing the cache and restarting the server.

  • Dev mode is enabled.


Questions:

How should I correctly handle t-call-assets or avoid the warning if it's not meant to be used?

0
Avatar
Discard
Avatar
Alp
Best Answer

Hello

Use "t-out" instead of "t-esc" to fix your mistake

if it doesn't work


try



<odoo>
  <data>
    <template
      id="my_module_assets_backend"
      inherit_id="web.assets_backend"
      name="My Module Web Assets">
      <xpath expr="." position="inside">
        <!-- your JS -->
        <script
          type="text/javascript"
          src="/my_module/static/src/js/my_script.js"/>
        <!-- your CSS -->
        <link
          rel="stylesheet"
          href="/my_module/static/src/css/my_style.css"/>
      </xpath>
    </template>
  </data>
</odoo>

Adding it to the web.assets_backend package



mainerror

Templates like web.webclient_bootstrap and web.conditional_assets_tests are treated as "normal" QWeb fragments, and here t-call-assets does not know what the t-js or t-css attributes mean, so it throws the error

end

0
Avatar
Discard
Avatar
koeppa2
Best Answer

Hey! Those warnings can be tricky. It sounds like you might need to double-check your template syntax, especially with the deprecated directives. Have you tried updating those @t-esc directives to @t-out as suggested? That might help clear up some of the warnings.

0
Avatar
Discard
koeppa2

https://2player.co

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

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

Sign up
Related Posts Replies Views Activity
(((guia-ayuda)))¿Cómo llamar a Latam Chile desde celular?
development debug
Avatar
0
Dec 25
1
Testing of computed field in Odoo 18 extension dev
development debug
Avatar
1
Nov 25
652
How do I correctly create a calculated field to sum two other field values in Odoo Studio (Odoo Online)? Solved
development debug
Avatar
Avatar
2
Nov 25
773
How can I make buttons in Odoo 18? Solved
development debug
Avatar
Avatar
Avatar
3
Sep 25
1759
Problem when creating my first module locally
development debug
Avatar
Avatar
Avatar
Avatar
Avatar
4
Aug 25
2218
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