Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2723 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 19
2873
1
feb. 19
4383
1
iun. 18
3002
2
feb. 22
10665
4
oct. 17
7400