Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
5778 Ansichten

Hi,

I need to create a drop down list of customer in the POS interface, i know we have loaded the customers in the pos and we can select it by click on customer button.But i wish to display customers as a dropdown list.How can i do that?

Thanks

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Mai 23
137
0
Nov. 22
2945
2
Juli 22
20272
0
März 19
3412
3
Apr. 25
1350