Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4189 Представления

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
июн. 23
2079
1
сент. 22
2301
1
авг. 22
2340
0
апр. 22
3305
2
окт. 16
3116