Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3622 Visualizzazioni

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):
     @http.route('partner/create')
     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.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
set 15
9412
4
ago 15
4633
0
gen 25
1615
1
ott 22
3646
2
set 22
5023