Hi
How to pass values to pos screen widget. I tried to pass a dictionary like below. but it is not working. I am calling screen widget from a popup.
self.gui.show_screen('PackageReciept',{
'packages' : pkg_list,
});
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
How to pass values to pos screen widget. I tried to pass a dictionary like below. but it is not working. I am calling screen widget from a popup.
self.gui.show_screen('PackageReciept',{
'packages' : pkg_list,
});
try this
this.gui.show_screen('screen_name', {'packages' : pkg_list});
and in your screen widget js get the values like this
var packages = this.gui.get_current_screen_param('packages');
Thank you
Hello Jithin,
Try below code
this.gui.show_screen('screen_name', {'packages' : pkg_list});
correct me if i am wrong !
Thanks & Regards,
Rohit
I am calling 'this' to 'self ' variable. Thats why 'self.gui.show_screen' called. Its not working , any way thanks for replay rohit.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Dec 19
|
9175 | ||
|
2
Dec 17
|
6249 | ||
|
1
Jan 17
|
2241 | ||
|
4
Aug 23
|
10406 | ||
|
0
Mar 22
|
2800 |