Hello everyone , I try to modify web.Pager in addon web, the code js as below
But when I run browse, I see this error in console
Please explain to me
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello everyone , I try to modify web.Pager in addon web, the code js as below
But when I run browse, I see this error in console
Please explain to me
Thanks.
In version 14 Pager is an owl component it's not a standard widget.
Thanks for your information, what sholud I do next
learn the owl framework :)
owl Component is basically javascript Class
So either monkey patch it to override the method or Find a clean way to extend it (if possible)
ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
I think you can extend the pager in the same way that you have extended the DropdownMenuItem owl widget.
\https://github.com/odoo/odoo/blob/14.0/addons/web/static/src/js/control_panel/custom_filter_item.js#L45
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
1
de des. 25
|
369 | |||
|
3
de set. 25
|
3796 | |||
|
0
d’ag. 25
|
1208 | |||
|
1
d’ag. 25
|
3603 | |||
|
2
de jul. 25
|
9215 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.