Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How to set drop-down list for customers in point of sale interface

形象
odoo
形象
丢弃
1 答案
0
形象
odoo
最佳答案

Hi,

Like you said partners are already loaded to POS.You can access those in XML

Try the below code

<select>
<option value=''>None</option>
<t t-foreach='widget.pos.partners' t-as='partner'>
<option t-att-value='partner.id'>
<t t-esc='partner.name'/>
</option>
</t>
</select>

We will get the customers by looping widget.pos.partners. And you can use this in your required position where you need the dropdownlist.

Hope it helps

形象
丢弃