Skip to Content
Menu
This question has been flagged
1 Atsakyti
2722 Rodiniai

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

Portretas
Atmesti
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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 19
2873
1
vas. 19
4380
1
birž. 18
3001
2
vas. 22
10664
4
spal. 17
7399