Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
6691 Vizualizări

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

        } 

Imagine profil
Abandonează

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 Cel mai bun răspuns

I Need to redirect another page while save records

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
apr. 24
2222
2
sept. 20
5064
8
feb. 25
23927
1
dec. 24
2091
0
sept. 24
1391