Created
August 11, 2020 10:57
-
-
Save sehrishnaz/744d72ed8795c5c7b16abff35a7357c5 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
| class TestClass(http.Controller): | |
| @http.route('/test/', type='http', auth='public') | |
| def test_function(self, redirect=None, **kw): | |
| if request.httprequest.method == 'POST': | |
| return request.render('module_name.my_custom_form', { | |
| 'error': 'error message goes here', | |
| 'data': data, | |
| }) | |
| # To resolve this issue modify above controller with below one | |
| class TestClass(http.Controller): | |
| @http.route('/test/', type='http', auth='public', website=True) | |
| def test_function(self, redirect=None, **kw): | |
| if request.httprequest.method == 'POST': | |
| return request.render('module_name.my_custom_form', { | |
| 'error': 'error message goes here', | |
| 'data': data, | |
| }) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for details: https://learnopenerp.blogspot.com/2020/08/t-call-web-website-login-layout-qwebexception-odoo.html