跳至內容
選單
此問題已被標幟
3 回覆
6689 瀏覽次數

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
2221
2
9月 20
5062
8
2月 25
23917
1
12月 24
2086
0
9月 24
1390