コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
4405 ビュー

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
5637
2
5月 19
3165
1
9月 25
87
2
8月 25
423
1
9月 25
414