Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Preview Invoice Gets Error: 500: Internal Server Error

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
invoicepreview
2 Respuestas
3027 Vistas
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
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

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
Descartar
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
Autor Mejor respuesta

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
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Invoice preview looks diffrent then downloaded invoice
accounting invoice print preview
Avatar
Avatar
Avatar
2
ago 25
740
change between 2 Invoice formats Resuelto
invoice
Avatar
Avatar
1
jul 25
1597
Hello, how can I change the size of the logo and the invoice? Resuelto
invoice
Avatar
Avatar
Avatar
2
jul 25
1951
Validation Error. You will need to clear the Journal Entry's Number to proceed
invoice
Avatar
Avatar
1
jul 25
2947
Restricting Salesperson Access to Customer Invoice Details
invoice
Avatar
Avatar
Avatar
3
abr 25
2824
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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