I have tried widget.model == 'report.pos.order' but not worked
I want these in odoo 10
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have tried widget.model == 'report.pos.order' but not worked
I want these in odoo 10
Try this:
widget.model == 'report.pos.order'
Have you tried using the code below?
widget.modelName == 'report.pos.order'
Hi, try also depending on where you are:
this.value.model
this.state.model
If it doesn't help,
add a few loggers, like console.log(this), console.log(widget)
Press F12 --> choose console --> reload page
You would see a js object with all available attributes. One of those would definitely have model or res_model
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
How to ORDER BY? [Odoo 10]
Solved
|
|
2
Nov 24
|
25060 | |
|
2
May 24
|
5510 | ||
|
3
Mar 24
|
4960 | ||
|
0
Mar 24
|
261 | ||
|
3
Feb 24
|
11413 |