Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5109 Lượt xem

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..

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 16
3938
0
thg 4 20
7394
0
thg 11 23
2465
0
thg 5 23
1348
Slides and PDF Đã xử lý
3
thg 3 24
13361