Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2719 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 19
2872
1
thg 2 19
4380
1
thg 6 18
3001
2
thg 2 22
10660
4
thg 10 17
7397