Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
wrz 15
9401
4
sie 15
4619
0
sty 25
1605
1
paź 22
3611
2
wrz 22
4971