Odoo Help

Welcome!

This community 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.

9

How to do custom implementions on the login screen?

By
Francisco Luz
on 3/20/13, 12:16 AM 2,770 views

Hi,

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
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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

3 follower(s)

Stats

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