This question has been flagged
2056 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

Avatar
Discard