跳至内容
菜单
此问题已终结
3 回复
6673 查看

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',

        } 

形象
丢弃

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

hello

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

编写者 最佳答案

I Need to redirect another page while save records

形象
丢弃
相关帖文 回复 查看 活动
1
4月 24
2209
2
9月 20
5026
8
2月 25
23812
1
12月 24
2041
0
9月 24
1375