Odoo Help


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.


generate modelform in controller

on 4/28/16, 6:05 AM 248 views

Hallo everyone,

i come from python django framework world and i am wondering if it is possible in odoo controller to render modelform like in django. for example:

class PartnerController(http.Controller):
     def create_form(self, **kw):
         model = request.registry['res.partner']
         form = auto generate view for the model
         return form

or maybe a way to automatically show an already existing  'ir.ui.view' on the website from the controller.

the ideas is to reuse already defined views and or to not rewrite views for each models every time.

i already know about the website builder but i want somthing that will be easy to add into a module.

thanks for your time.

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

1 follower(s)


Asked: 4/28/16, 6:05 AM
Seen: 248 times
Last updated: 4/28/16, 12:39 PM