Odoo Help


7 Answers
Marina Boules Egypt
03:26, 23/04/2019

Because website user (user_id) is public user that created as user on users list. 

So if you removed public user from users list, website will be stopped and give this error.

Paul Catinean Romania
13:11, 03/01/2018

After quite a bit of investigation I've traced the issue to this line: https://github.com/odoo/odoo/blob/10.0/addons/website/models/ir_http.py#L65

Apparently the website object has a non-required field user_id which should point to the default Public User. For some undiscovered reason that field can set to an empty value and then the aforementioned line sets the uid on the request to False.

One would have to update the user_id value in the database with the daabase id of the portal user to restore normal function, in the meantime I will also make a PR to check the value of user_id on the website or make user_id required to avoid this in the future.

Hope this helps.


Here is the PR in question: https://github.com/odoo/odoo/pull/21997

David Nguyen Vietnam
11:23, 11/06/2017

Did anyone have a solution for this?

Jurre Claassen Netherlands
09:58, 28/10/2016

Just tried repairing the database with the -d parameter, still same error. Thanks for the suggestion.

Can't reply to answers yet due to lack of karma

保定-粉刷匠 China
09:28, 28/10/2016

You can update you database,using parameter '-D YourDatabaseName -U all‘ when you start odoo.

Try this.

Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now