Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Blank page after logging in odoo

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
4 Besvarelser
35764 Visninger
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
Kassér
Avatar
Paresh Wagh
Bedste svar

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
Kassér
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
Bedste svar

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
Kassér
Avatar
Ketul patel
Bedste svar

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
Kassér
Avatar
Yvan
Bedste svar

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
Kassér
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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