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

"Unallowed to fetch files" Error after I tried to implement a dashboard

Subscribe

Get notified when there's activity on this post

This question has been flagged
2 Replies
187 Views
Avatar
Tadelo Ferede
Traceback (most recent call last):
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\cache.py", line 103, in lookup
    r = d[key]
        ~^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\python\Lib\site-packages\decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\func.py", line 97, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\lru.py", line 33, in __getitem__
    a = self.d[obj]
        ~~~~~~^^^^^
KeyError: ('ir.qweb', <function IrQWeb._generate_asset_links_cache at 0x000001AD6C795BC0>, 'web.assets_frontend', True, False, (('website_id', 1),), False)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\cache.py", line 103, in lookup
    r = d[key]
        ~^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\python\Lib\site-packages\decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\func.py", line 97, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\lru.py", line 33, in __getitem__
    a = self.d[obj]
        ~~~~~~^^^^^
KeyError: ('ir.asset', <function IrAsset._get_asset_paths at 0x000001AD6C207A60>, 'web.assets_frontend', (('website_id', 1),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<1873>", line 1675, in template_1873
  File "<1873>", line 1194, in template_1873_content
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_qweb.py", line 2532, in _load_values
    return get_value()
           ^^^^^^^^^^^
  File "<1873>", line 1184, in template_1873_t_cache_0_cache
  File "<1873>", line 551, in template_1873_t_cache_0
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_qweb.py", line 2489, in _get_asset_nodes
    links = self._get_asset_links(bundle, css=css, js=js, debug=debug)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_qweb.py", line 2504, in _get_asset_links
    return self._generate_asset_links_cache(bundle, css=css, js=js, assets_params=assets_params, rtl=rtl)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\python\Lib\site-packages\decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\cache.py", line 110, in lookup
    value = d[key] = self.method(*args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_qweb.py", line 2558, in _generate_asset_links_cache
    return self._generate_asset_links(bundle, css, js, False, assets_params, rtl)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_qweb.py", line 2634, in _generate_asset_links
    asset_bundle = self._get_asset_bundle(bundle, css=css, js=js, debug_assets=debug_assets, rtl=rtl, assets_params=assets_params)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_qweb.py", line 2581, in _get_asset_bundle
    files, external_assets = self._get_asset_content(bundle_name, assets_params)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_qweb.py", line 2563, in _get_asset_content
    asset_paths = self.env['ir.asset']._get_asset_paths(bundle=bundle, assets_params=assets_params)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\python\Lib\site-packages\decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\cache.py", line 110, in lookup
    value = d[key] = self.method(*args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_asset.py", line 155, in _get_asset_paths
    self._fill_asset_paths(bundle, asset_paths, [], addons, installed, **assets_params)
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_asset.py", line 192, in _fill_asset_paths
    self._process_path(bundle, asset.directive, asset.target, asset.path, asset_paths, seen, addons, installed, bundle_start_index, **assets_params)
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_asset.py", line 212, in _process_path
    paths = self._get_paths(path_def, installed)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_asset.py", line 346, in _get_paths
    raise Exception(f"Unallowed to fetch files from addon {addon} for file {path_def}")
Exception: Unallowed to fetch files from addon website_payment for file website_payment/static/src/snippets/s_donation/000.js

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\http.py", line 1962, in _transactioning
    return service_model.retrying(func, env=self.env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\service\model.py", line 156, in retrying
    result = func()
             ^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\http.py", line 1929, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\http.py", line 2090, in dispatch
    return self.request.registry['ir.http']._dispatch(endpoint)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_http.py", line 335, in _dispatch
    result.flatten()
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\http.py", line 1389, in flatten
    self.response.append(self.render())
                         ^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\http.py", line 1381, in render
    return request.env["ir.ui.view"]._render_template(self.template, self.qcontext)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\website\models\ir_ui_view.py", line 449, in _render_template
    return super()._render_template(template, values=values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_ui_view.py", line 2197, in _render_template
    return self.env['ir.qweb']._render(template, values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\tools\profiler.py", line 306, in _tracked_method_render
    return method_render(self, template, values, **options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 18.0.20250305\server\odoo\addons\base\models\ir_qweb.py", line 606, in _render
    result = ''.join(rendering)
             ^^^^^^^^^^^^^^^^^^
  File "<185>", line 237, in template_185
  File "<185>", line 226, in template_185_content
  File "<184>", line 51, in template_184
  File "<184>", line 40, in template_184_content
  File "<1873>", line 1683, in template_1873
odoo.addons.base.models.ir_qweb.QWebException: Error while rendering the template
Exception: Unallowed to fetch files from addon website_payment for file website_payment/static/src/snippets/s_donation/000.js
Template: website.layout
Path: /t/html/head/t[11]
Node: <t t-call-assets="web.assets_frontend" t-js="false"/>
0
Avatar
Discard
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

This error occurs because Odoo 18 strictly controls which addons are allowed to contribute files to frontend asset bundles, and while rendering web.assets_frontend it detected a JavaScript file from the website_payment addon that is being loaded without proper authorization. The dashboard implementation itself is not the real issue; rather, it triggered a rebuild of the frontend assets, which exposed an incorrect or missing dependency or asset declaration. In most cases, this happens when a custom module extends website.layout, calls web.assets_frontend, or adds frontend logic without declaring website_payment as a dependency in the module’s __manifest__.py, or when a JS file from another addon is referenced directly instead of being included through the asset system. Odoo 18 blocks this to enforce addon isolation and prevent unintended asset injection. To resolve the issue, ensure that any module using website frontend templates properly depends on website and website_payment, avoid directly referencing JS files by path in XML, declare custom assets only within your own module’s asset section, and then restart Odoo and upgrade the module to clear the asset cache.


Hope it helps

0
Avatar
Discard
Avatar
Tadelo Ferede
Author Best Answer
Thank you very much for your valuable explanation. After carefully reviewing your suggestions and further analyzing my work, I was able to resolve the issue.

The problem occurred because the Web Payment module installation was interrupted due to an error in the JavaScript file of the custom dashboard module. Since the custom dashboard installation contained incorrect JavaScript, it caused the installation process to stop before the Web Payment module could be fully installed.

As a result, the Web Payment module remained in an incomplete state, which led to the issue. I resolved this by completing the Web Payment module installation through the terminal. Once the installation was completed successfully, the issue was fully resolved.
0
Avatar
Discard
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
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