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.

0

Reset password with customization loginpane didn't appear (V7) ?

By
Ahmed elbarbary
on 1/4/15, 6:44 AM 507 views

i am using openerp v 7 and i customize login page in seperate module login_page and add base.xml file in login_page folder with this
 

<?xml version="1.0" encoding="UTF-8"?>

<templates>
  <t t-extend="Login">

      <t t-jquery="div.oe_login" t-operation="replace">
        <div class="oe_login">

                <t t-jquery="div.oe_login_bottom" t-operation="replace">
                      <div class="oe_login_bottom">
                    </div>
            </t>

                <t t-jquery="div.oe_login_error_message" t-operation="replace">        

                    <div class="oe_login_error_message"/>
                        </t>

                        <t t-jquery="div.oe_login_pane" t-operation="replace">        
                            <div class="oe_login_pane">
                                <t t-jquery="div.oe_login_logo" t-operation="replace">
                                        <div class="oe_login_logo"><img src='/login_page/static/src/img/logo.jpg'/>
                                </div>
                            </t>
                                <form action="" method="post">

                                <t t-jquery="div.oe_login_dbpane" t-operation="replace">            
                                        <div class="oe_login_dbpane" >
                                              Database:
                                                <input name="db" t-att-value="widget.selected_db || ''"/>
                                        </div>
                            </t>
                                        <ul>

                                           <li>Login to your account : </li>
                                           <li>Username : <input name="login" type="text" value="" autofocus="autofocus"/></li>
                                            <li>Password  : <input name="password" type="password" value=""/></li>

                                            <li><button name="submit">Log in</button></li>
                                        </ul>
                                </form>

                                <t t-jquery="div.oe_login_footer" t-operation="replace">
                                        <div class="oe_login_footer">
                                            <a href="http://www.mycompany.com" target="_blank"><span>www.mycompany.com</span></a>
                                        </div>
                            </t>


                            </div>
                    </t>

        </div>
      </t>
  </t>

</templates>

and it is working fine bt when  i select allow user to reset password from setting--> general setting, the reset password doesn't appear and when i comment this code in login_page/static/src/xml/base_xml it  appears ?!

could you help me on this ?
Thanks in advance

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

1 follower(s)

Stats

Asked: 1/4/15, 6:44 AM
Seen: 507 times
Last updated: 3/16/15, 8:10 AM