Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2732 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 19
2883
1
лют. 19
4394
1
черв. 18
3017
2
лют. 22
10711
4
жовт. 17
7406