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

Error when render the template v15 model: website.layout

Subscribe

Get notified when there's activity on this post

This question has been flagged
websiterender_template
2016 Views
Avatar
Renata Carrillo

When trying to access the website, the following error is displayed:


Here is the full error:

Traceback (most recent call last):
  File "/odoo/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/odoo/odoo/tools/func.py", line 71, in wrapper
    return func(self, *args, **kwargs)
  File "/odoo/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('ir.qweb', <function IrQWeb._generate_asset_nodes_cache at 0x7fec6fb41f70>, 'website.assets_editor', True, False, '1', False, False, False, (1, 'pt_BR'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/odoo/odoo/addons/base/models/qweb.py", line 221, in render_template
    yield from compiled_fn(self, values, log)
  File "<template_4382>", line 417, in template_4382
  File "/odoo/odoo/addons/base/models/ir_qweb.py", line 263, in _get_asset_nodes
    return self._generate_asset_nodes_cache(bundle, css, js, debug, async_load, defer_load, lazy_load, media)
  File "<decorator-gen-71>", line 2, in _generate_asset_nodes_cache
  File "/odoo/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/odoo/odoo/addons/base/models/ir_qweb.py", line 272, in _generate_asset_nodes_cache
    return self._generate_asset_nodes(bundle, css, js, debug, async_load, defer_load, lazy_load, media)
  File "/odoo/odoo/addons/base/models/ir_qweb.py", line 283, in _generate_asset_nodes
    return remains + asset.to_node(css=css, js=js, debug=debug, async_load=async_load, defer_load=defer_load, lazy_load=lazy_load)
  File "/odoo/odoo/addons/base/models/assetsbundle.py", line 147, in to_node
    css_attachments = self.css(is_minified=not is_debug_assets) or []
  File "/odoo/odoo/addons/base/models/assetsbundle.py", line 435, in css
    self.save_attachment(extension, css)
  File "/odoo/odoo/addons/base/models/assetsbundle.py", line 337, in save_attachment
    attachment = ira.with_user(SUPERUSER_ID).create(values)
  File "<decorator-gen-326>", line 2, in create
  File "/odoo/odoo/api.py", line 417, in _model_create_multi
    return create(self, [arg])
  File "/odoo/extra-addons/enterprise/documents_account/models/ir_attachment.py", line 8, in create
    attachments = super().create(vals_list)
  File "<decorator-gen-250>", line 2, in create
  File "/odoo/odoo/api.py", line 398, in _model_create_single
    return self.browse().concat(*(create(self, vals) for vals in arg))
  File "/odoo/odoo/api.py", line 398, in <genexpr>
    return self.browse().concat(*(create(self, vals) for vals in arg))
  File "/odoo/addons/website/models/ir_attachment.py", line 25, in create
    return super(Attachment, self).create(vals)
  File "<decorator-gen-237>", line 2, in create
  File "/odoo/odoo/api.py", line 395, in _model_create_single
    return create(self, arg)
  File "/odoo/extra-addons/enterprise/documents/models/ir_attachment.py", line 76, in create
    attachment = super(IrAttachment, self).create(vals)
  File "<decorator-gen-55>", line 2, in create
  File "/odoo/odoo/api.py", line 417, in _model_create_multi
    return create(self, [arg])
  File "/odoo/odoo/addons/base/models/ir_attachment.py", line 632, in create
    values.update(self._get_datas_related_values(
  File "/odoo/odoo/addons/base/models/ir_attachment.py", line 266, in _get_datas_related_values
    values['store_fname'] = self._file_write(data, values['checksum'])
  File "/odoo/odoo/addons/base/models/ir_attachment.py", line 129, in _file_write
    fname, full_path = self._get_path(bin_value, checksum)
  File "/odoo/odoo/addons/base/models/ir_attachment.py", line 112, in _get_path
    raise UserError("The attachment is colliding with an existing file.")
odoo.exceptions.UserError: The attachment is colliding with an existing file.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/odoo/odoo/addons/base/models/ir_http.py", line 242, in _dispatch
    result = request.dispatch()
  File "/odoo/odoo/http.py", line 819, in dispatch
    r = self._call_function(**self.params)
  File "/odoo/odoo/http.py", line 368, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo/http.py", line 360, in checked_call
    result.flatten()
  File "/odoo/odoo/http.py", line 1291, in flatten
    self.response.append(self.render())
  File "/odoo/odoo/http.py", line 1284, in render
    return env["ir.ui.view"]._render_template(self.template, self.qcontext)
  File "/odoo/odoo/addons/base/models/ir_ui_view.py", line 1994, in _render_template
    return self.browse(self.get_view_id(template))._render(values, engine)
  File "/odoo/addons/website/models/ir_ui_view.py", line 435, in _render
    return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext)
  File "/odoo/addons/web_editor/models/ir_ui_view.py", line 35, in _render
    return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
  File "/odoo/odoo/addons/base/models/ir_ui_view.py", line 2002, in _render
    return self.env[engine]._render(self.id, qcontext)
  File "/odoo/extra-addons/enterprise/web_studio/models/ir_qweb.py", line 47, in _render
    return super(IrQWeb, self)._render(template, values=values, **options)
  File "/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render
    return method_render(self, template, values, **options)
  File "/odoo/odoo/addons/base/models/ir_qweb.py", line 93, in _render
    result = super()._render(template, values=values, **compile_options)
  File "/odoo/odoo/addons/base/models/qweb.py", line 134, in _render
    result = ''.join(rendering)
  File "/odoo/odoo/addons/base/models/qweb.py", line 223, in render_template
    raise e
  File "/odoo/odoo/addons/base/models/qweb.py", line 221, in render_template
    yield from compiled_fn(self, values, log)
  File "<template_4379>", line 20, in template_4379
  File "/odoo/odoo/addons/base/models/qweb.py", line 225, in render_template
    raise QWebException("Error when render the template", self, options,
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/odoo/odoo/addons/base/models/ir_http.py", line 242, in _dispatch
    result = request.dispatch()
  File "/odoo/odoo/http.py", line 819, in dispatch
    r = self._call_function(**self.params)
  File "/odoo/odoo/http.py", line 368, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo/http.py", line 360, in checked_call
    result.flatten()
  File "/odoo/odoo/http.py", line 1291, in flatten
    self.response.append(self.render())
  File "/odoo/odoo/http.py", line 1284, in render
    return env["ir.ui.view"]._render_template(self.template, self.qcontext)
  File "/odoo/odoo/addons/base/models/ir_ui_view.py", line 1994, in _render_template
    return self.browse(self.get_view_id(template))._render(values, engine)
  File "/odoo/addons/website/models/ir_ui_view.py", line 435, in _render
    return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext)
  File "/odoo/addons/web_editor/models/ir_ui_view.py", line 35, in _render
    return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
  File "/odoo/odoo/addons/base/models/ir_ui_view.py", line 2002, in _render
    return self.env[engine]._render(self.id, qcontext)
  File "/odoo/extra-addons/enterprise/web_studio/models/ir_qweb.py", line 47, in _render
    return super(IrQWeb, self)._render(template, values=values, **options)
  File "/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render
    return method_render(self, template, values, **options)
  File "/odoo/odoo/addons/base/models/ir_qweb.py", line 93, in _render
    result = super()._render(template, values=values, **compile_options)
  File "/odoo/odoo/addons/base/models/qweb.py", line 134, in _render
    result = ''.join(rendering)
  File "/odoo/odoo/addons/base/models/qweb.py", line 223, in render_template
    raise e
  File "/odoo/odoo/addons/base/models/qweb.py", line 221, in render_template
    yield from compiled_fn(self, values, log)
  File "<template_4379>", line 20, in template_4379
  File "/odoo/odoo/addons/base/models/qweb.py", line 225, in render_template
    raise QWebException("Error when render the template", self, options,
odoo.addons.base.models.qweb.QWebException: The attachment is colliding with an existing file.
Traceback (most recent call last):
  File "/odoo/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/odoo/odoo/tools/func.py", line 71, in wrapper
    return func(self, *args, **kwargs)
  File "/odoo/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('ir.qweb', <function IrQWeb._generate_asset_nodes_cache at 0x7fec6fb41f70>, 'website.assets_editor', True, False, '1', False, False, False, (1, 'pt_BR'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/odoo/odoo/addons/base/models/qweb.py", line 221, in render_template
    yield from compiled_fn(self, values, log)
  File "<template_4382>", line 417, in template_4382
  File "/odoo/odoo/addons/base/models/ir_qweb.py", line 263, in _get_asset_nodes
    return self._generate_asset_nodes_cache(bundle, css, js, debug, async_load, defer_load, lazy_load, media)
  File "<decorator-gen-71>", line 2, in _generate_asset_nodes_cache
  File "/odoo/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/odoo/odoo/addons/base/models/ir_qweb.py", line 272, in _generate_asset_nodes_cache
    return self._generate_asset_nodes(bundle, css, js, debug, async_load, defer_load, lazy_load, media)
  File "/odoo/odoo/addons/base/models/ir_qweb.py", line 283, in _generate_asset_nodes
    return remains + asset.to_node(css=css, js=js, debug=debug, async_load=async_load, defer_load=defer_load, lazy_load=lazy_load)
  File "/odoo/odoo/addons/base/models/assetsbundle.py", line 147, in to_node
    css_attachments = self.css(is_minified=not is_debug_assets) or []
  File "/odoo/odoo/addons/base/models/assetsbundle.py", line 435, in css
    self.save_attachment(extension, css)
  File "/odoo/odoo/addons/base/models/assetsbundle.py", line 337, in save_attachment
    attachment = ira.with_user(SUPERUSER_ID).create(values)
  File "<decorator-gen-326>", line 2, in create
  File "/odoo/odoo/api.py", line 417, in _model_create_multi
    return create(self, [arg])
  File "/odoo/extra-addons/enterprise/documents_account/models/ir_attachment.py", line 8, in create
    attachments = super().create(vals_list)
  File "<decorator-gen-250>", line 2, in create
  File "/odoo/odoo/api.py", line 398, in _model_create_single
    return self.browse().concat(*(create(self, vals) for vals in arg))
  File "/odoo/odoo/api.py", line 398, in <genexpr>
    return self.browse().concat(*(create(self, vals) for vals in arg))
  File "/odoo/addons/website/models/ir_attachment.py", line 25, in create
    return super(Attachment, self).create(vals)
  File "<decorator-gen-237>", line 2, in create
  File "/odoo/odoo/api.py", line 395, in _model_create_single
    return create(self, arg)
  File "/odoo/extra-addons/enterprise/documents/models/ir_attachment.py", line 76, in create
    attachment = super(IrAttachment, self).create(vals)
  File "<decorator-gen-55>", line 2, in create
  File "/odoo/odoo/api.py", line 417, in _model_create_multi
    return create(self, [arg])
  File "/odoo/odoo/addons/base/models/ir_attachment.py", line 632, in create
    values.update(self._get_datas_related_values(
  File "/odoo/odoo/addons/base/models/ir_attachment.py", line 266, in _get_datas_related_values
    values['store_fname'] = self._file_write(data, values['checksum'])
  File "/odoo/odoo/addons/base/models/ir_attachment.py", line 129, in _file_write
    fname, full_path = self._get_path(bin_value, checksum)
  File "/odoo/odoo/addons/base/models/ir_attachment.py", line 112, in _get_path
    raise UserError("The attachment is colliding with an existing file.")
odoo.exceptions.UserError: The attachment is colliding with an existing file.
Error when render the template
UserError: The attachment is colliding with an existing file.
Template: website.layout
Path: /t/html/head/t[9]
Node: <t t-call-assets="website.assets_editor" t-js="false" groups="website.group_website_publisher"/>





Has anyone encountered the same issue?

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
Related Posts Replies Views Activity
How do I remove the numbers from the slugs in my blog and blogpost? Solved
website
Avatar
Avatar
Avatar
Avatar
3
Sep 25
2497
Login Website Solved
website
Avatar
3
Oct 25
149265
500 Server Error after upgrading from 18.0 to 18.4 Odoo Online
website
Avatar
Avatar
1
Sep 25
1830
Can't delete website Solved
website
Avatar
Avatar
Avatar
Avatar
Avatar
4
Sep 25
6647
How to Hide website Menus based on Groups
website
Avatar
Avatar
Avatar
2
Aug 25
1900
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