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.

1

How to override the web module by custom module

By
youring
on 6/14/13, 5:26 AM 3,683 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,`
3

Hiral Patel (hip)

--Hiral Patel (hip)--
Tiny ERP Pvt Ltd
http://www.odoo.com
913
| 2 1 5
India
--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
     </t>
</t>

</templates>

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.

youring
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?

youring
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

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

2 follower(s)

Stats

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