Skip to Content
मेन्यू
This question has been flagged
1 Reply
2706 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
अग॰ 19
2857
1
फ़र॰ 19
4362
1
जून 18
2985
2
फ़र॰ 22
10630
4
अक्तू॰ 17
7370