Created
August 11, 2020 10:55
-
-
Save sehrishnaz/ee1e41dcf396ec38c7deca8ecb51df96 to your computer and use it in GitHub Desktop.
Web.login_layout QWebException | <t t-call="web.login_layout"> | QWebException: "'NoneType' object has no attribute 'name'" while evaluating 'res_company.name'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <openerp> | |
| <data> | |
| <template id="my_custom_form"> | |
| <t t-call="web.login_layout"> | |
| <form class="oe_signup_form" role="form" t-attf-action="/test/" method="post" onsubmit="this.action = this.action + location.hash"> | |
| <div class="form-group field-login"> | |
| <label for="name" class="control-label">Enter Name</label> | |
| <input type="text" name="name" t-att-value="name" id="name" class="form-control" required="required" autofocus="autofocus"/> | |
| </div> | |
| <p class="alert alert-danger" t-if="error"> | |
| <t t-esc="error"/> | |
| </p> | |
| <p class="alert alert-success" t-if="message"> | |
| <t t-esc="message"/> | |
| </p> | |
| <div class="clearfix oe_login_buttons"> | |
| <button type="submit" class="btn btn-primary">Submit</button> | |
| <a href="/web/login" class="btn btn-link pull-right">Back to Login</a> | |
| </div> | |
| </form> | |
| </t> | |
| </template> | |
| </data> | |
| </openerp> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for more details: https://learnopenerp.blogspot.com/2020/08/t-call-web-website-login-layout-qwebexception-odoo.html