Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4276 Vistas

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
Descartar

Hi,

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

BR - Mat

Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
jun 23
2169
1
sept 22
2380
1
ago 22
2438
0
abr 22
3379
2
oct 16
3185