I want to use displayNotification in my customFunction but when i code like this self.displayNotification(), error because displayNotification is not function.
btw my self is i call ErrorDialog like RPCEErrordialog or something
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
Hi zzz,
Checked in odoo about this, First of all we have two JS structures in Odoo 16.
For OWL: odoo.define we have example
self. displayNotification({ title: result. warning, type: 'danger' }); GOLD
this. displayNotification({ title: result. warning, type: 'danger' });
For OWL: /* @odoo-module */ we have example
this.widget.displayNotification({
message: this.env._t("No available collaborator, please
try again later."),
sticky: true,
});
Use 'This' and 'Self' According to functionality of function.
Hope this answer will help you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
1
6月 23
|
2117 | ||
|
1
5月 23
|
2066 | ||
|
1
10月 22
|
4214 | ||
|
0
5月 20
|
3223 | ||
|
2
1月 20
|
8859 |
Can you send your custom function so i refer.
nikhilnakrani143@gmail.com