Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
6666 Widoki

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

        } 

Awatar
Odrzuć

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

hello

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

Autor Najlepsza odpowiedź

I Need to redirect another page while save records

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 24
2198
2
wrz 20
5019
8
lut 25
23794
1
gru 24
2022
0
wrz 24
1374