Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5106 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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)

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 16
3938
0
apr 20
7387
0
nov 23
2461
0
mag 23
1348
3
mar 24
13360