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

How can i debug odoo-8 while module development?

Suscribirse

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

Se marcó esta pregunta
3 Respuestas
8814 Vistas
Avatar
samba

I want to develop a module in odoo-8. I odoo-7, i used print statement to debug or print the variable. I want to use log in terminal. How can i run odoo-8, to see print statement in terminal?

0
Avatar
Descartar
Avatar
samba
Autor Mejor respuesta

Navigate to odoo-server folder and run this command ./odoo.py --addons-path=addons/,../custom/addons/

0
Avatar
Descartar
Stephen Mack

Sorry but I don't see how that will log your debug statements. Can you please explain your answer a little bit better. I would like to understand.

samba
Autor

Hi Stephen, While i am developing modules in odoo-7, most of cases i use print statement to debug my module. But in odoo-8 i did not get logs on terminal, i have to go var/log/odoo/log file to see output. I did not see print statement output there, for that i have to use _logger.info/_logger.debug statement. This logging process little bit uncomfortable to me. That's why i have asked in forum like odoo-7 server running process.

Avatar
Hengky Zhang
Mejor respuesta

if you want to debug perline of your code

you can try function pdb.set_trace() function
from pdb module

0
Avatar
Descartar
samba
Autor

Thank you Hengky, Can you give me any idea how can i use this in odoo debugging?

Hengky Zhang

https://docs.python.org/2/library/pdb.html

Anabela Damas

In v8 the pdb is not working properly, the arrows don't work , I cannot edit the line .... Do you have a solution ?

Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Mejor respuesta

Hi Samba 

Simply do this command to start up Odoo with logging in the terminal:

./openerp-server --log-level=debug

This will print out debug statements like these:

0
Avatar
Descartar
samba
Autor

Thank you Yenthe, tried the above command. When i goto "localhost:8069" it is showing below error. 2015-01-14 05:13:25,926 2982 INFO ? openerp: addons paths: ['/home/samba/.local/share/Odoo/addons/8.0', u'/home/samba/odoo-7/addons', u'/home/samba/odoo-7/custom_modules', '/opt/odoo/odoo-server/openerp/addons'] 2015-01-14 05:13:25,926 2982 INFO ? openerp: database hostname: localhost 2015-01-14 05:13:25,926 2982 INFO ? openerp: database port: 5432 2015-01-14 05:13:25,926 2982 INFO ? openerp: database user: samba 2015-01-14 05:13:25,927 2982 WARNING ? openerp.modules.module: module web: module not found 2015-01-14 05:13:25,927 2982 CRITICAL ? openerp.modules.module: Couldn't load module web 2015-01-14 05:13:25,927 2982 CRITICAL ? openerp.modules.module: No module named web 2015-01-14 05:13:25,927 2982 ERROR ? openerp.service.server: Failed to load server-wide module `web`. The `web` module is provided by the addons found in the `openerp-web` project. Maybe you forgot to add those addons in your addons_path configuration. Traceback (most recent call last): File "/opt/odoo/odoo-server/openerp/service/server.py", line 850, in load_server_wide_modules openerp.modules.module.load_openerp_module(m) File "/opt/odoo/odoo-server/openerp/modules/module.py", line 312, in load_openerp_module __import__('openerp.addons.' + module_name) File "/opt/odoo/odoo-server/openerp/modules/module.py", line 76, in load_module f, path, descr = imp.find_module(module_part, ad_paths) ImportError: No module named web 2015-01-14 05:13:25,958 2982 WARNING ? openerp.modules.module: module web_kanban: module not found 2015-01-14 05:13:25,958 2982 CRITICAL ? openerp.modules.module: Couldn't load module web_kanban 2015-01-14 05:13:25,958 2982 CRITICAL ? openerp.modules.module: No module named web_kanban 2015-01-14 05:13:25,958 2982 ERROR ? openerp.service.server: Failed to load server-wide module `web_kanban`. Traceback (most recent call last): File "/opt/odoo/odoo-server/openerp/service/server.py", line 850, in load_server_wide_modules openerp.modules.module.load_openerp_module(m) File "/opt/odoo/odoo-server/openerp/modules/module.py", line 312, in load_openerp_module __import__('openerp.addons.' + module_name) File "/opt/odoo/odoo-server/openerp/modules/module.py", line 76, in load_module f, path, descr = imp.find_module(module_part, ad_paths) ImportError: No module named web_kanban 2015-01-14 05:13:25,958 2982 DEBUG ? openerp.service.server: Setting signal handlers 2015-01-14 05:13:25,959 2982 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069 "I have tried the command " ./openerp-server --addons /opt/odoo/odoo-server/addons/,/opt/odoo/custom/addons --log-level=debug " " but no use.. It is showing below error ProgrammingError: permission denied for relation ir_module_module

Yenthe Van Ginneken (Mainframe Monkey)

Hmm this error is basicly telling you that it cannot find the 'web' module. I presume you've placed it under another folder / in another folder or messed the structure of the module up. This is the reason why your Odoo is failing and that is giving you the permission denied warning.

¿Le interesa esta conversación? ¡Participe en ella!

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

Registrarse
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.

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