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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
1
ago. 19
|
2854 | ||
|
1
fev. 19
|
4362 | ||
|
1
jun. 18
|
2984 | ||
|
2
fev. 22
|
10630 | ||
|
4
out. 17
|
7366 |