Skip to Content
मेन्यू
This question has been flagged
1 Reply
4407 Views

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
Discard

Hi,

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

BR - Mat

Best Answer

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
Discard
Related Posts Replies Views Activity
3
जून 23
2283
1
सित॰ 22
2541
1
अग॰ 22
2570
0
अप्रैल 22
3473
2
अक्तू॰ 16
3276