Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3809 Weergaven

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!

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
dec. 21
3005
0
mrt. 19
2987
1
okt. 21
10779
0
okt. 21
2079
5
jul. 25
2381