تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3813 أدوات العرض

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
ديسمبر 21
3009
0
مارس 19
2988
1
أكتوبر 21
10781
0
أكتوبر 21
2084
5
يوليو 25
2396