我想在 POS 中单击按钮时显示 openerp 合作伙伴搜索弹出窗口。我将按钮放入pos.xml
如下所示
<div id="rightheader">
<div id="order-selector">
<button class="neworder-button">+</button>
<ol id="orders"></ol>
</div>
<!-- here goes header buttons -->
<button class="order-selector-button">Select Customer</button>
</div>
我开始知道我需要为此编写一个 JS 代码,但我不知道如何从 JS 调用 res_partner 搜索视图?我想要实现的内容显示在附图中