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

How to refresh view whenever a discard button is clicked? I want to clear all page context and references whenever a top discard is clicked.

Actually what I am facing is that I have a one2many view (order_lines of sale.order) which I am populating by overriding the default_get of sale,order. This one2many view is populating as I want but when the form view is closed and reopen, then default data is populating twice. It goes on increment whenever I repeat this process. I am assuming that this is causing due to view context that already contains previous data in it. And default_get keep adding further data to it.

 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 21
3471
1
يوليو 20
4752
1
أكتوبر 18
11204
1
مايو 16
5216
1
يناير 25
1666