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

Once i filled all required field of form and save, Redirect another action window like model

I'm tried this way to redirect another action window

@api.model

    def create(self, vals):

        res = super(seed, self).create(vals)

      

        return {

            'name': 'SeedOrder',

            'view_type': 'form',

            'view_mode': 'tree, form',

            'res_model': 'seed.order', # name of redirect model

            # 'res_id': res.id,

            'view_id': False,

            'target’': 'new',

            'type': 'ir.actions.act_window',

        } 

Ảnh đại diện
Huỷ bỏ

What error did you get? Be more elaborative in you question

hello

you cannot redirect any form on the return of the create method. 

Tác giả Câu trả lời hay nhất

I Need to redirect another page while save records

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
2235
2
thg 9 20
5115
8
thg 2 25
24054
1
thg 12 24
2134
0
thg 9 24
1420