Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4207 Vues

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
Ignorer

Hi,

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

BR - Mat

Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
juin 23
2108
1
sept. 22
2318
1
août 22
2360
0
avr. 22
3327
2
oct. 16
3132