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

Hello All,

i am trying to search slide record that is in the form of document (google spreadsheet, xls etc.) so i found document_id field and datas field so how to convert that field to string from binary and search something from that. 

Can anyone help me

Thanks in advance..

頭像
捨棄
最佳答案

Hi Haresh Kansara,

You can refer

File :- "odoo-10.0/odoo/addons/base/ir/ir_attachment.py"

Method :- def _inverse_datas(self):

Odoo is using a hidden Text field to store the content:-

index_content = fields.Text('Indexed Content', readonly=True, prefetch=False)

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
9月 16
3943
0
4月 20
7446
0
11月 23
2467
0
5月 23
1351
3
3月 24
13388