Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4386 Weergaven

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

Avatar
Annuleer

Hi,

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

BR - Mat

Beste antwoord

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.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
jun. 23
2268
1
sep. 22
2518
1
aug. 22
2543
0
apr. 22
3443
2
okt. 16
3263