Odoo Help


How to override the web module by custom module

on 6/14/13, 5:26 AM 4,681 views

I want to override the addons\web\static\src\xml\base.xml in a custom module, i.e. the login page. to load my customized login page first before creating the first database.

How to write the __openerp__.py file and xml file

And what does these tag do in web/__openerp__.py :

'post_load': 'wsgi_postload',
'bootstrap': True,
'web_preload': False,`

Hiral Patel (hip)

--Hiral Patel (hip)--
| 2 1 5
--Hiral Patel (hip)--

Hiral Patel (hip)
On 6/14/13, 10:32 AM

In your custom module create folder like: ststic/src/xml/custom.xml

In custom.xml file

<templates id="template" xml:space="preserve">

<t t-extend="Login" >
     <t t-jquery=".oe_login" t-operation="replace">
            Custom code for Login Page


Add this file in your __openerp__.py file like : 'qweb': ['static/src/xml/custom.xml']

Thanks for reply. But I mean how to load the web module before creating database( i.e. before install the module. I tried to add 'post_load': 'wsgi_postload', 'bootstrap': True, in __openerp__.py, but not work. I've edited my question.

on 6/14/13, 12:37 PM

Add 'auto_install': True in __openerp__.py, it ,may solve your problem. Thanks.

Hiral Patel (hip)
on 6/17/13, 2:53 AM

I notice the bug https://bugs.launchpad.net/openerp-web/+bug/963962 similar to my question. It's tagged with fixed. Where is the fix?

on 6/17/13, 10:54 AM

can u explain what mean of <t t-extend="Login" > and <t t-jquery=".oe_login"> what is the mean by "Login " and ".oe_login" i think "Login" is the model name and .oe_login is the jquery inherited class am i right or wrong ..??

Dasadiya Chaitanya
on 4/14/14, 4:07 AM

Login is the template name(Have a lool in base.xml of web). And ".oe_login" is class name.

Hiral Patel (hip)
on 4/16/14, 5:44 AM

thanks a lot ..!!!!!!!

Dasadiya Chaitanya
on 4/16/14, 8:17 AM

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

2 follower(s)


Asked: 6/14/13, 5:26 AM
Seen: 4681 times
Last updated: 3/16/15, 8:10 AM