Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3617 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 9 15
9407
4
thg 8 15
4625
0
thg 1 25
1609
1
thg 10 22
3625
2
thg 9 22
4992