Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
6701 Visualizzazioni

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
Abbandona

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

hello

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

Autore Risposta migliore

I Need to redirect another page while save records

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 24
2224
2
set 20
5072
8
feb 25
23958
1
dic 24
2114
0
set 24
1397