Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Error after installing "purchase" app in Odoo version 18

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
error
1 Svar
6602 Visninger
Avatar
Michael Cobby

I am receiving the following error message on product pages that has chatter sections such as order/invoice page.  This began after installing "purchase" App in Odoo version 18.
No custom apps have been installed.  Nothing in the Odoo logs related to this error.  uninstalling purchase app seems to fix it, however, I need the purchase module to be installed.  Any help would be greatly appreciated. 

Error:

The following modules failed to load because of an error, you may find more information in the devtools console: portal.assets_chatter.bundle.xml 


Browser Console displays the following error:

web.assets_frontend_lazy.min.js:3874
Error: Error while loading "portal.assets_chatter.bundle.xml":
    Error: Template mail.AttachmentList already exists
    Error: Error while loading "portal.assets_chatter.bundle.xml":
    Error: Template mail.AttachmentList already exists
        at ModuleLoader.startModule (web.assets_frontend_…nimal.min.js:24:225)
        at ModuleLoader.startModules (web.assets_frontend_minimal.min.js:23:57)
        at ModuleLoader.addJob (web.assets_frontend_minimal.min.js:20:39)
        at ModuleLoader.define (web.assets_frontend_…nimal.min.js:19:127)
        at portal.assets_chatter.min.js:3200:26
handleError @ web.assets_frontend_lazy.min.js:3874



0
Avatar
Kassér
Avatar
Gracious Joseph
Bedste svar

The error you're encountering in Odoo version 18 is caused by a conflict in templates. Specifically, the mail.AttachmentList template is defined twice, which results in Odoo being unable to load the portal.assets_chatter.bundle.xml. This is often caused by either:

  • A misconfiguration or bug in the installed modules (in this case, the purchase module).
  • Caching issues in the browser or the server.

Here’s how you can troubleshoot and resolve the issue:

1. Clear Cache and Assets

  • Action:
    • Go to Settings > Activate Developer Mode.
    • Navigate to Settings > Technical > Database Structure > Views, search for mail.AttachmentList.
    • Confirm whether this template exists multiple times or has a conflict.
    • Clear your browser cache or use an incognito window to avoid cached JavaScript/HTML errors.
    • Regenerate the assets on the server:
      ./odoo-bin -c odoo.conf --update=all
      
      This will update and regenerate all Odoo assets.

2. Check for Duplicate Template Definitions

  • The error indicates that the template mail.AttachmentList is defined multiple times, likely due to the purchase module loading an additional definition of the same template.
  • Action:
    • Open your Odoo instance in Developer Mode.
    • Search for the template mail.AttachmentList under Settings > Technical > Database Structure > Views.
    • Check if there are duplicate records for the same template. If duplicates exist:
      • Deactivate the duplicate template (if it belongs to a specific module, such as purchase).
      • Ensure there is only one active mail.AttachmentList template.

3. Debugging the JavaScript Bundle

  • The error specifically references the portal.assets_chatter.bundle.xml, which contains frontend resources for chatter functionality.
  • Action:
    • Verify the bundle loading:
      • In Developer Mode, navigate to Settings > Technical > User Interface > Views.
      • Search for portal.assets_chatter.bundle.
      • Check the JavaScript/CSS code for duplicate references to mail.AttachmentList or similar templates.

4. Reinstall the Purchase Module

If no duplicates or misconfigurations are found, try uninstalling and reinstalling the purchase module:

./odoo-bin -c odoo.conf -u purchase

5. Modify the Template

If a conflicting template is from a specific module (e.g., purchase):

  1. Extend the View:
    • Identify the conflicting template and modify it to resolve the issue:
    <template id="mail.AttachmentList" inherit_id="module.template_id" priority="20">
        <!-- Ensure unique definition -->
    </template>
    
  2. Disable the Duplicate Template:
    • If the duplicate template is unnecessary, you can deactivate it via the UI or by modifying the XML definition.

6. Check the Logs

Even though you mentioned no errors in Odoo logs, ensure verbose logging is enabled:

./odoo-bin -c odoo.conf --log-level=debug

Look for any clues related to portal.assets_chatter.bundle.xml or mail.AttachmentList.

7. Temporary Workaround

If you urgently need to use the Purchase module, you can temporarily remove the chatter functionality from the conflicting views:

  1. Navigate to Settings > Technical > User Interface > Views.
  2. Search for and edit the product page view or any page that includes chatter.
  3. Remove or comment out the chatter section temporarily:
    <xpath expr="//div[@class='o_chatter']" position="replace"/>
    

8. Report the Issue

If the above solutions don’t resolve the problem, report the issue to Odoo via their official support channels or community forums:

  • Provide details of the error, Odoo version, and steps to reproduce the problem.
  • If this is a bug in the Odoo purchase module for version 18, they may provide a patch.

Summary

The error likely stems from a duplicate or conflicting definition of the mail.AttachmentList template in the purchase module or its dependencies. Clearing the cache, resolving duplicate templates, and regenerating assets should resolve the issue. For a more permanent solution, fixing the template conflict directly in the module or reporting the issue to Odoo support may be necessary.

Let me know if you need further guidance!

0
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
okt. 25
534
Payment Page Return Error with Razorpay on Mobile Devices
error
Avatar
0
sep. 25
1154
error schema for TourStep Error
error
Avatar
0
nov. 24
2549
Can't modify manifest version of custom module [Odoo.sh]
error
Avatar
Avatar
Avatar
2
jul. 24
5160
Error loading my website
error
Avatar
0
apr. 24
3096
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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