This question has been flagged
1 Reply
2896 Views

I am trying to show the customers list in PoS as a pop-up window. I have added necessary styles to the clientlist-screen screen div for this purpose. But the problem I am facing is the product-screen  div is hidden in the background. Odoo has added a class named oe_hidden to it which prevents it from showing in the background. I have tried the following to show the product-screen div in the click function of the Customer button widget(ActionpadWidget), but none of them is working.

self.gui.show_screen('products');
$(".my-products-div").show(); // added new class to products div and tried show() method
$(".product-screen  ").removeClass("oe_hidden");


Any solution?

Avatar
Discard
Best Answer

Hi Gopakumar N G,

self.gui.show_screen('products');
$(".my-products-div").show(); // added new class to products div and tried show() method
$(".product-screen ").removeClass("oe_hidden");

It is not possible,I have suggestions for your requirement:
Search "this.gui.show_popup " in addons/point_of_sale it will be like this :

self.gui.show_popup("error-traceback", {
title: _t("Unknown Products"),
body:
_t(
"Unable to load some order lines because the " +
"products are not available in the POS cache.\n\n" +
"Please check that lines :\n\n * "
) + self.unknown_products.join("; \n *"),
});

Use this function and edit it according to your requirement, although you can create a similar widget.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard