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:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 6 23
|
2116 | ||
|
1
thg 5 23
|
2064 | ||
|
1
thg 10 22
|
4208 | ||
|
0
thg 5 20
|
3222 | ||
|
2
thg 1 20
|
8858 |
Can you send your custom function so i refer.
nikhilnakrani143@gmail.com