跳至內容
選單
此問題已被標幟
3947 瀏覽次數

I'm trying to create a customer dropdown field on a form. In addition to the ability to search a customer by name the users should be able to search a customer by their internal reference (field 'ref' in res.partner). This would be trivial in a search view by using

filter_domain="['|', ('name', 'ilike', self), ('ref', 'ilike', self)]"

as the filter_domain, but it seems that in the form view the filter_domain attribute of the xml field definition is ignored.

Is there any way around this other than overriding the name_search() method?

 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
7月 23
2177
1
2月 25
10325
1
3月 21
6733
2
7月 17
3672
1
9月 22
2628