Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
6697 Visualizações

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
Cancelar

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 Melhor resposta

I Need to redirect another page while save records

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
abr. 24
2224
2
set. 20
5065
8
fev. 25
23945
1
dez. 24
2099
0
set. 24
1393