跳至内容
菜单
此问题已终结
3756 查看

I'm developping a small JS application in Odoo that leverages VueJs. For the moment, the app is pretty basic, it display a Hello World a header and a button. I want to make it so that clicking on the button prompts Odoo to display a notification.

I know it's possible to fire notifications when extending a widget through this.do_notify(), but the widget functions are not available to me since my Vue components don't have access to those functions.

I tried requiring Notification through var Notification = require('web.Notification'), but I have no idea how to proceed from here.

Anyone has any ideas? Thanks!

形象
丢弃
相关帖文 回复 查看 活动
0
12月 21
2967
0
3月 19
2971
1
10月 21
10747
0
10月 21
2035
5
7月 25
2355