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

I have a button that calls the model action below.

For some reason the warning message doesn't show but the "test" shows on the ODOO log.

def import_file(self):
   print("test")
   return {'warning': {'title':'title','message':'message'}}
頭像
捨棄
作者

I would like to use standard ODOO functionality but the above code seems right but does not return a warning as expected.

作者

I did notice that if its a server action you need to set the action to the above return value

相關帖文 回覆 瀏覽次數 活動
0
3月 15
5575
2
5月 19
3127
2
8月 25
116
1
8月 25
267
1
8月 25
207