Odoo Help


Custom authentication, javascript never call

clement zotti
on 6/5/14, 10:39 AM 1,605 views



I try to make a custom authentication module.

So i took inspiration(like copy paste and rename) from auth_oauth module in the addons folder.

this is my complete javascript file in:




Next I wrote a controller in




I have also add the import in


>> import controllers


>> import main


and in the __openerp__.py

i add this
        'js': [
        'css': [


The auth_oauth module is not installed.

When I try to debug, the javascript never come in the start function I declare in my js file.

It's like all the function in instance.web.Login.include is never included during the process.

I try to install the auth_oauth module and debug his javascript and his start function is call.


What i miss for the openerp javascript call my start function ?

Clement, thanks

clement zotti
On 6/5/14, 2:38 PM

I found....

it's realy easy but I try to find an answer too far away,

I juste give se same name in

openerp.Module = blabla

and the name of the folder which contains the module,

Both does have the same name because in the function with call the start, the folder name is given to the openerp var....


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

1 follower(s)


Asked: 6/5/14, 10:39 AM
Seen: 1605 times
Last updated: 5/15/17, 11:29 AM