Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2698 Prikazi

How do i do to:

I need to call the function set_product_list of the ProductListWidget object in the button_click of the set_pricelist_button object. The ProductListWidget object does not exist within that function?

Thanks in advance

Avatar
Opusti
Best Answer

Hi, 

I am not sure, but in odoo they have used somewhere something like this. So you can use like:

this.product_list_widget = new ProductListWidget(this,{
click_product_action: function(product){
self.click_product(product);
},
product_list: this.pos.db.get_product_by_category(0)
});

I hope it will gives you an idea


Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
avg. 19
2847
1
feb. 19
4353
1
jun. 18
2973
2
feb. 22
10628
4
okt. 17
7364