콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4359 화면

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?

아바타
취소
베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
3월 24
2880
1
11월 18
4997
2
3월 15
4725
2
8월 20
72
2
8월 20
52