跳至内容
菜单
此问题已终结
3 回复
4364 查看

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
5573
2
5月 19
3126
1
8月 25
36
0
8月 25
50
1
8月 25
262