Skip to content

Instantly share code, notes, and snippets.

@sehrishnaz
Created August 11, 2020 10:55
Show Gist options
  • Select an option

  • Save sehrishnaz/ee1e41dcf396ec38c7deca8ecb51df96 to your computer and use it in GitHub Desktop.

Select an option

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'
<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>
@sehrishnaz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment