Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3820 Переглядів

I have been trying to call a form from my parent form. The form is being called nicely but when I return back to my parent form. It gets saved automatically. I want to remain the parent form in the edit mode because when I call button for child form, its in edit mode then how it gets saved ? i dont want to save this form and hit edit button again every time I go back from child form. My python code for calling the form is as follows:

def show(self,cr,uid,ids,context=None):
        for id in ids:
            deg_obj=self.pool.get('deg.form').browse(cr,uid,id)
            my_id=int(deg_obj.my_products)
            
        print my_id
        return{
              'view_type': 'form',
              'view_mode': 'form',
              'res_model': 'product.product',
              'res_id':my_id,
              'context': context,
              'type': 'ir.actions.act_window',
              'nodestroy':True
              }

 

 

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
груд. 23
12976
3
лип. 22
23419
2
черв. 21
18748
0
вер. 20
3842
0
трав. 16
4282