Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Preview Invoice Gets Error: 500: Internal Server Error

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
invoicepreview
2 Antwoorden
3099 Weergaven
Avatar
Minda Ji

We have been actively testing Odoo 17 on premise for some time. 

when we try preview of invoice after creation of an invoice the screen returns with Internal Server Error. If we activate the developer mode we get the details:

Error message:

Error while render the template
ValueError: Non-image binary fields can not be converted to HTML
Template: payment.form_logo
Path: /t/span
Node: 

The error occurred while rendering the template payment.form_logo and evaluating the following expression: 

We would appreciate it if someone can help resolve the issue.

0
Avatar
Annuleer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

Hi,

The error message indicates that there's an issue with rendering the template related to the payment form logo. The error suggests that a non-image binary field is being treated as an image, which is causing the ValueError.

Please check with the below:

1. Check the Payment Form Template:

Go to Settings > Technical > User Interface > Views.

Search for the template form_logo.

Look for any code snippet that tries to access a binary field and use it as an image source.

Common mistakes include using a field meant for storing documents or other data types instead of an image field.

2. Verify the Invoice Data:

Open the invoice you're having trouble previewing.

Check the field associated with the payment.form_logo template

Ensure this field actually contains a valid image file. Uploading a non-image file or leaving the field empty can cause this error.

3)If you've made customizations to the payment.form_logo template or the invoice model, there might be a bug in your code.

Review your customizations to see if you're inadvertently referencing the wrong field or attempting to convert a non-image field.

4. Sometimes, browser cache can cause unexpected behavior. Clearing the browser cache might resolve the issue.


Hope it helps

2
Avatar
Annuleer
Fatin

hii, I have error with my event page. 500:Internal Server Error. Template fallback

Error message:

Error while render the template
ValueError: Element '<xpath expr="//div[hasclass(&#39;o_wevent_index_topbar_filters&#39;)]">' cannot be located in parent view
Template: website_event.index
Path: /t/t/div/div[2]/div/t
Node: <t t-call="website_event.searched_tags"/>
The error occurred while rendering the template website_event.index and evaluating the following expression: <t t-call="website_event.searched_tags"/>

can you help me solve it, please. Thank you sm!

Avatar
Minda Ji
Auteur Beste antwoord

Dear Sir:

Thanks a lot for your answer. We will give it a try to see if the problem would be resolved.

Minda


Dear Sir:

I have just tried the solutions. They do not work:

1. I checked the view:

all are original codes. 

2. Tried clearing al the cache a few times

3. There is nothing I used in the invoices. All the draft invoices can be viewed with no problem until I confirm any to make it a real one.


0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Print preview is different from invoice template preview Opgelost
invoice print invoicing preview
Avatar
Avatar
2
nov. 25
8768
Invoice preview looks diffrent then downloaded invoice
accounting invoice print preview
Avatar
Avatar
Avatar
2
aug. 25
800
change between 2 Invoice formats Opgelost
invoice
Avatar
Avatar
1
jul. 25
1733
Hello, how can I change the size of the logo and the invoice? Opgelost
invoice
Avatar
Avatar
Avatar
2
jul. 25
2080
Validation Error. You will need to clear the Journal Entry's Number to proceed
invoice
Avatar
Avatar
1
jul. 25
3019
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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