跳至內容
選單
此問題已被標幟
1 回覆
4193 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
6月 23
2090
1
9月 22
2306
1
8月 22
2346
0
4月 22
3310
2
10月 16
3117