Skip to Content
Menú
This question has been flagged
1 Respondre
2895 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
1
d’ag. 19
3021
1
de febr. 19
4502
1
de juny 18
3160
2
de febr. 22
11122
4
d’oct. 17
7587