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

How do I disable the exiting customers data getting populated as suggestions when I type new one


Lets says : 

I am typing Deco Addict , I dont want all the suggestions to pop down , How do I disable this , I would rather hit TAB and select my required name. 


Any suggesttions

아바타
취소

Hi,

any chance you solved this? I was looking for something similar as well...

BR - Mat

베스트 답변

Hi, there,

try this(for example):

@api.model
def name_get(self):
_logger.info('----entry sale_order_service_type_line_improved name_get----')
result = []
# for rec in self:
# result.append((rec.id, "{}-{}".format(rec.id, rec.name)))
return result

for Many2one filed, it will call the name_get function, which you can rewrite.

Hope it is useful.

아바타
취소
관련 게시물 답글 화면 활동
3
6월 23
2335
1
9월 22
2622
1
8월 22
2606
0
4월 22
3543
2
10월 16
3319