Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

Error after installing "purchase" app in Odoo version 18

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
error
1 Atsakyti
6580 Rodiniai
Portretas
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
Portretas
Atmesti
Portretas
Gracious Joseph
Best Answer

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

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

Registracija
Related Posts Replies Rodiniai Veikla
?"Your country might be blocked by our hosting provider" error when I create new website
error
Portretas
0
spal. 25
519
Payment Page Return Error with Razorpay on Mobile Devices
error
Portretas
0
rugs. 25
1142
error schema for TourStep Error
error
Portretas
0
lapkr. 24
2536
Can't modify manifest version of custom module [Odoo.sh]
error
Portretas
Portretas
Portretas
2
liep. 24
5131
Error loading my website
error
Portretas
0
bal. 24
3079
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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