Ir al contenido
Odoo Menú
  • Inicia 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 propiedades
    • 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
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

RPC_ERROR Arbitrary Uncaught Python Exception

Suscribirse

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

Se marcó esta pregunta
reportsodoo17CE
2 Respuestas
4188 Vistas
Avatar
Marcos Pérez

When I try to export reports in Odoo 17 Community Edition it exports the file but Odoo throws me this exception:

RPC_ERROR
Arbitrary Uncaught Python Exception
204

                               
The above server error caused the following client error:
RPC_ERROR: Arbitrary Uncaught Python Exception
    RPC_ERROR
        at makeErrorFromResponse (http://localhost:8069/web/assets/debug/web.assets_web.js:27989:19) (/web/static/src/core/network/rpc_service.js:37)
        at decoder.onload (http://localhost:8069/web/assets/debug/web.assets_web.js:27872:25) (/web/static/src/core/network/download.js:566)
0
Avatar
Descartar
Avatar
Marcos Pérez
Autor Mejor respuesta

Thanks for your help, debugging in developer tools of chrome I noticed that IDM Integration module was getting the download information. Once disabled the error disapeared. If you can close this, I dont have enouhg XP to solve it in the platform. 

0
Avatar
Descartar
Avatar
Gracious Joseph
Mejor respuesta

The RPC_ERROR with an "Arbitrary Uncaught Python Exception" during report export in Odoo 17 Community Edition indicates that something went wrong in the backend logic when generating or serving the report. This is often caused by a misconfiguration or a bug in custom or core Odoo modules. Here’s how you can resolve it:

Step-by-Step Troubleshooting

1. Check Server Logs

  • Go to the Odoo server terminal and inspect the logs immediately after reproducing the issue.
  • Look for a Python traceback in the logs; it will provide specific information about what failed.

Example:

plaintextCopy codeTraceback (most recent call last):
  File "/path/to/odoo/odoo/addons/base/models/ir_actions_report.py", line ...

The logs will often point you to the specific file and line where the issue occurred.

2. Verify Report Templates

  • If the report you’re exporting is custom, ensure that the corresponding QWeb template is well-formed.
  • Go to Settings > Technical > Reports and verify the report's associated template.
  • Common errors include:
    • Missing or incorrectly defined t-field tags.
    • Syntax errors in QWeb templates (like unclosed tags).

Example of a proper t-field tag:

xmlCopy code<t t-foreach="docs" t-as="o">
    <span t-field="o.name"/>
</t>

3. Check the Report Action Configuration

  • Navigate to Settings > Technical > Actions > Reports.
  • Locate the report you are trying to export.
  • Verify that the Template and Model fields are correctly configured.

Example:

  • Template: report_saleorder_document
  • Model: sale.order

If these are misconfigured, Odoo may fail to generate the report correctly.

4. Inspect Module Dependencies

  • If you’re using custom modules, ensure that the dependencies for the report are loaded and correctly defined.
  • Check for missing imports or improperly overridden methods in the related report logic (e.g., render_html, render_qweb_pdf).

5. Enable Developer Mode for Debugging

  • Enable Developer Mode in Odoo (Settings > Activate Developer Mode).
  • Reproduce the issue and check for additional details in the browser console or the /web/assets/debug/ stack traces.

6. Recompile Assets

  • If you’ve recently updated or installed a module, recompile Odoo assets to ensure the frontend and backend are in sync:
    bashCopy code./odoo-bin -d your_database_name --dev=all
    
  • Clear the browser cache and reload the page to apply the latest assets.

7. Test on a Clean Environment

  • Sometimes, issues are environment-specific. Export the same report on a fresh Odoo instance or database with no customizations.
  • If it works, the issue lies in your customizations or data setup.

8. Patch or Debug the Code

  • If the issue stems from a core Odoo file (as indicated in logs), it might be a bug in Odoo 17. Check Odoo's official GitHub repository for similar issues and patches: Odoo GitHub Issues
  • Use breakpoints in the Python code to identify where the error is raised:
    pythonCopy codeimport pdb; pdb.set_trace()
    

9. Upgrade or Reinstall Modules

  • Upgrade the module responsible for the report:
    bashCopy code./odoo-bin -d your_database_name -u module_name
    
  • If that doesn’t work, uninstall and reinstall the module after backing up your data.

10. Inspect Report Format and Size

  • If you’re exporting a large or complex report (e.g., PDF), the issue could be related to timeouts or memory limits. Increase the timeout in your Odoo configuration:
    • Open your odoo.conf file.
    • Add or modify the following:
      iniCopy codelimit_time_cpu = 600
      limit_time_real = 1200
      limit_memory_soft = 268435456
      limit_memory_hard = 536870912
      
    • Restart the server.

Example of Fixing QWeb Errors in ir_actions_report

Here’s an example of debugging Python logic in a report:

pythonCopy codefrom odoo import models

class ReportSaleOrder(models.AbstractModel):
    _name = 'report.sale.order_report'

    def _get_report_values(self, docids, data=None):
        try:
            docs = self.env['sale.order'].browse(docids)
            return {'docs': docs}
        except Exception as e:
            _logger.error(f"Error generating report: {e}")
            raise

Conclusion

By carefully checking logs, templates, and configurations, you should be able to identify the root cause. If the issue persists, please share the exact log error message from the server for more specific guidance.

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
Code for page number in Body of Pdf report
reports
Avatar
Avatar
Avatar
2
oct 25
4053
How to increase the width of a column on odoo quotation PDF?
reports
Avatar
Avatar
1
oct 25
1829
Odoo Online (SaaS 18.4 Enterprise) – How to modify invoice report header without affecting other reports but keep default table content
reports
Avatar
Avatar
1
ago 25
2457
Odoo Community V17
odoo17CE
Avatar
Avatar
Avatar
2
jul 25
3604
Odoo .SH V17 how do I migrate a report from staging to production?
reports
Avatar
Avatar
1
abr 25
3098
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 Svenska ภาษาไทย 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.

Sitio web hecho con

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