Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
6661 Vistas

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

        } 

Avatar
Descartar

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 Mejor respuesta

I Need to redirect another page while save records

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 24
2194
2
sept 20
5019
8
feb 25
23780
1
dic 24
2017
0
sept 24
1371