跳至內容
選單
此問題已被標幟
5017 瀏覽次數

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
2月 21
3481
1
7月 20
4758
1
10月 18
11208
1
5月 16
5218
1
1月 25
1676