Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

How can i debug odoo-8 while module development?

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
3 Risposte
8819 Visualizzazioni
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
Abbandona
Avatar
samba
Autore Risposta migliore

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

0
Avatar
Abbandona
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
Autore

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
Risposta migliore

if you want to debug perline of your code

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

0
Avatar
Abbandona
samba
Autore

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)
Risposta migliore

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
Abbandona
samba
Autore

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.

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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