跳至內容
選單
此問題已被標幟
1 回覆
5426 瀏覽次數

Hi,

I need to refresh or reload my current Purchase order.

When i click the button in Purchase order line i need to reload or refresh the purchase order. So for that i add the reload method on "button click" but its not reload the purchase order

My code:

@api.multi

def button_click(self);

return {

                'type': 'ir.actions.client',

                'tag': 'reload',

                }

when i add this above code under "purchase.order" class its working but i need to write only in "purchase.order.line"

can anyone help me to resolve this.. ASAP

頭像
捨棄
最佳答案

As it seam you do not process any of the data when you click the button, what about create a javascript function to update your webpage instead of reloading it, or to make javascript reload the page in the browser

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 25
421
0
12月 24
1060
2
10月 24
1158
1
8月 24
2305
2
7月 24
1545