Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
6665 Zobrazení

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
Zrušit

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 Nejlepší odpověď

I Need to redirect another page while save records

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 24
2198
2
zář 20
5019
8
úno 25
23793
1
pro 24
2022
0
zář 24
1374