Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4198 Zobrazení

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
Zrušit

Hi,

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

BR - Mat

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
čvn 23
2096
1
zář 22
2312
1
srp 22
2350
0
dub 22
3312
2
říj 16
3118