Odoo Help

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.

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

Question tools

3 follower(s)


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