تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
6694 أدوات العرض

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

        } 

الصورة الرمزية
إهمال

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

hello

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

الكاتب أفضل إجابة

I Need to redirect another page while save records

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 24
2222
2
سبتمبر 20
5065
8
فبراير 25
23937
1
ديسمبر 24
2097
0
سبتمبر 24
1391