Odoo Help


How to do custom implementions on the login screen?

Francisco Luz
on 3/20/13, 12:16 AM 3,622 views


This thread here http://forum.openerp.com/forum/topic32532.html teaches how to hack into an existing module in order to change the login screen.

I am wondering if it's possible to do a custom implementation without touching the core or contributed modules. If so, how?

1) Is it required to save that file on same path in our module folder like my module custom_login and want to change "web\static\src\xml\base.xml" so i have to put my created file base.xml in directory "custom_login\static\src\xml\base.xml" 2)and also some of code in __openerp__.py same put in my module's __openerp__.py

Hitesh Ambaliya
on 10/31/13, 6:19 AM
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 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

Question tools

3 follower(s)


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