简体   繁体   中英

Add customer search in openerp version 7 POS frontend view

I want to show the openerp partner search pop up on button click in POS. I put the button in pos.xml as given below

<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>

I came to know that I need to write a JS code for that but I am not getting how can i call the res_partner search view from JS? What I want to achieve is shown in attached image 在此处输入图片说明

Search this module:
lp:~mmakonnen/openobject-addons/point_of_sale_enhanced-70

It has several enhancements to the POS module like keyboard and the one you're looking for: customer search in POS.

Best regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM