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

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

아바타
취소
베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
5월 23
137
0
11월 22
2381
2
7월 22
19226
0
3월 19
2890
3
4월 25
257