コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
6718 ビュー

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
2235
2
9月 20
5104
8
2月 25
24023
1
12月 24
2126
0
9月 24
1416