Odoo Help

9
0
Timothy Solomon
On 4/9/13, 6:40 AM

Hi, what changes do you want to make? If they are cosmetic changes you could create a module with a static/src/css folder with a css file that overrides the default stylesheet. You don't have to hack the source code.

0
mike
On 5/13/13, 10:51 AM

The simplest way is to call /web/session/authenticate using JSON as follows:

{"jsonrpc": "2.0", "method": "call", "params": {"session_id": "SID", "context": {}, "login": "' + username + '", "password" : "' + password + '", "db" : "mydatabase"}, "id": null}

That is from a jquery function I created to handle authentication and the return value is the user ID. You'll have to retrieve the session ID from the cookie named sid to use in subsequent requests. If you use Firebug with the Net console active during a login it is very useful to see the entire process and the format of the JSON calls as well as the responses.

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Odoo Training Center

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

Test it now

Question tools

3 follower(s)

Stats

Asked: 3/20/13, 12:16 AM
Seen: 4029 times
Last updated: 3/16/15, 8:10 AM