Odoo Help

1

how to display html file using controller?

By
Jamin Shah
on 2/12/14, 3:02 AM 832 views

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

jamin,
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

Pawan
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.

Register

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)

Stats

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