How to fix the "HttpRequest" object does not have the "endpoint_arguments" attribute in Odoo?

I was provided with a backup copy of the database (with a file file), a filestore folder, and another folder with installed modules in this database.

I expect to restore this backup in Odoo 8 without any data. So, I created the PostgreSQL role, which owns the database tables and gives it enough permissions (login, createdb, replication). Then I created the Odoo configuration file. Inside this, I set this new PostgreSQL role to db_user and its password to db_password . I added the path where I saved filestore to data_dir , and the path to the folder with all the modules in addons_path .

Since I was not provided with a startup file, I copied the OCB folder of another Odoo instance that I have and used its odoo.py file to launch Odoo.

The new instance seems to work fine, but now I just restored the database and I get this error:

 QWebException: "'HttpRequest' object has no attribute 'endpoint_arguments'" while evaluating 'website.get_alternate_languages(request.httprequest)' 

I walked a lot, but I could not find anything except a question without an answer in another forum.

Does anyone know what that means?

+5
source share
2 answers

Changes related to this problem were made to Odoo on February 29, 2016 (I mean the following changes: [FIX] website: alternate languages โ€‹โ€‹translated URLs and [FIX] website: backport , as you can check now these changes are also available in the official Odoo code base 8.0).
Therefore, most likely, you used an outdated Odoo 8.0 server, which does not contain the above fixes. Update the latest version of Odoo 8.0 and see if the problem persists. Usually your problem should go away after the update.

+1
source

When you move the backup databases and you want to restore them later, make sure that you mark the branch and commit points of the server files to which you took the backup. I took a look at my local v8 odoo, and I see that the endpoint_arguments variable is initialized when the web request is created (the WebPequest class of the openerp / http.py class around line 192).

You mentioned that you are restoring a database on the v8 OCB Odoo. If you move your distribution and commit:

https://github.com/OCA/OCB/commit/3913667396e17075528108ac1031939e6f479ced#diff-5e2f434047c379642786a87195c806f9

you will see that this variable is missing and they added it. So make sure you git pull server file to receive this message.

The root of the problem is that you took a backup from a server with a different code base than the one you are trying to restore the database to. (The qweb file was looking for a variable that does not exist)

0
source

All Articles