Odoo Help

Welcome!

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

1

how to display html file using controller?

By
Jamin Shah
on 2/12/14, 3:02 AM 722 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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