Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4388 Переглядів

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
2271
1
вер. 22
2521
1
серп. 22
2550
0
квіт. 22
3445
2
жовт. 16
3263