Odoo Help


how to display html file using controller?

Jamin Shah
on 2/12/14, 3:02 AM 1,156 views

html(xml) contains form that is displayed using controller.

Can u please elaborate your query?
If you just want to know that how to return html from controller then you can use:
return request.website.render("YOU_MODULE.TEMPLATE_NAME", { 'key': value, #any data you want to pass to the template xml which is going to be rendered as HTML }) at the end of the function

on 12/16/15, 12:57 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/12/14, 3:02 AM
Seen: 1156 times
Last updated: 3/16/15, 8:10 AM