Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Blank page after logging in odoo

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
4 Réponses
35776 Vues
Avatar
Agatino Platania

Hello,

After i restarted my server, seemed to work but after logging what worked well i saw only this:

https://www.dropbox.com/s/0q13fcipr86tzx9/odoo-bug.PNG?dl=0

I tried to restart odoo,postgresql and other services several times but it didnt work.

Log file:

https://www.dropbox.com/s/dddfqqyxdlz3ogf/odoo-server %281%29.log?dl=0

At the moment i don't know where to put on to get it working

 



7
Avatar
Ignorer
Avatar
Paresh Wagh
Meilleure réponse

Seems like an old post that got bumped up. If anyone faces a similar issue, try this.

Log in to odoo with a user who has Administrator privileges. Then type in ?debug=assets at the end of the url and hit enter (use https:// or http:// depending whether you have SSL enabled or not). 

Your url should look like this <your odoo site url:port>/web?debug=assets​​​

​This enables developer mode (with assets). Then go to Open Developer Tools (the tiny bug icon at the top right of your screen) and select Regenerate Assets Bundles. 

This should take care of the problem. I've seen this issue occurring when you move an odoo database from one machine to another.

 

15
Avatar
Ignorer
Talha alam

Thanks it worked:-)

Paresh Wagh

Great. Please click on the “Check mark” on the post to mark it as correct so that others can also benefit from it.

 

Thanks and regards,

Paresh

 

Sent from Mail for Windows 10

 

From: Talha alam
Sent: Sunday, April 19, 2020 3:45 AM
To: Paresh Wagh
Subject: Re: Blank page after logging in odoo

 

View Forum Post

Odoo S.A.

Thanks it worked:-)

Sent by Odoo S.A. using Odoo.

 

george

I faced the same problem and tried to find a solution for hours. Thank you very much @Paresh!

Dries Cox

Thanks Paresh Wagh, you saved my day!

Avatar
Nathan Mugnier
Meilleure réponse

I crossed your question 5 months ago and didn't found the answer until recently. Many reason might cause this error, but here is what caused it for me.


This answer will probably help you if you have custom routes in your controllers.


First of all, the solution :
​​​

You should never redefine any attribute of the `Response` object in a direct manner. 
This mean that a line such as

 Response.status = '400 Invalid credentials'

 will cause this error to occur everytime the route in which you have it is called. 

​

More in-depth about this bug : 
​

When you do

 Response.status = '400 Bad request' 

you regain control of the Response object, and interrupt the normal workflow of odoo. Therefore, it is no longer able to use it correctly, and every Response returned by any odoo route will have the last status defined until you restart server (in this exemple, 400, so every request is considered as a BadRequest, causing the blank page and diverses others bugs, but 200 would do the same since 302 is necessary for redirections). 

If anybody knows why Odoo doesn't regain control of the Response object, feel free to edit this answer (and please do, this bugged me for so long). 
  

So how to modify the response status? : 
​

A quick glance at the core modules gives us the answer

​

Case of custom HTTP method (Like POST) :  ​


raise werkzeug.exception.BadRequest("400 Invalid credentials")


Note that you can't raise any other error than 400 by default. If you want to do so, you have to modify the http.py file in the odoo's root repertory. But be aware that this probably mean you didn't understood the HTTP protocol, as I did. In fact, most of the time you should return 200, there is no HTTP error so request is a success. However you should add a `error` attribute to the json returned if behavior is not what the client expect (like a wrong password at connexion). 

​

Case of standard method AFAIK (Like GET): 
​

response = werkzeug.wrappers.Response(json.dumps({<i>[your json dictionary]</i>}), status="400 Invalid credentials")
return response
1
Avatar
Ignorer
Avatar
Ketul patel
Meilleure réponse

Open inspect in your browser and see in console. if any error then solve it. like missing some abc.js file or etc..

0
Avatar
Ignorer
Avatar
Yvan
Meilleure réponse

Dear Agatino,


i have ever faced a similar problem, respectively similar errors in the log file. The source of the problem was a missing addon-path during the initialization of a new database. The typical error message is "ImportError: No module named fields".

If, having an emtpy database, you start the odoo server without specifying "/odoo/odoo-server/odoo/addons" as an addon-path, you will see this error message in the log file: ""ImportError: No module named fields".

I don't know if it's possible to correct the problem without having to drop the database and create a new one. I would suggest to drop the database, create a new one an start odoo 

$ dropdb rpr1
$ createdb rpr1 


Best regards

Yvan

-1
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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