跳至內容
選單
此問題已被標幟
1 回覆
2710 瀏覽次數

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


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 19
2863
1
2月 19
4369
1
6月 18
2994
2
2月 22
10638
4
10月 17
7382