تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5182 أدوات العرض

I know there is DMS module which is used to do uploading of file.It use knowledge module and ir.attachment.py.But I need to upload a pdf file from local system into my openerp custom module using onchange function and get the preview of it. Please help me on this. It very urgent. ThankYou in advance.

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

Take one binary field,

When fire onchange, via base64 encoding get file and set in that binary field.

For preview you might need to design custom web feature, by default OpenERP does not have this feature as per my knowledge.

Thanks,

الصورة الرمزية
إهمال
الكاتب

Hi Zahin can you please provide me some link or some code view so I can easily implement this... and thanks for reply.....

الكاتب

Hi Zahin please provide me some link for that.........

Its kind of tools.image_get_resized_images(obj.image), you need to dig more on tools features.

This website mostly gives 502 ERROR / NGINX...

* BETTER YOU POST YOUR QUESTION ON STACKOVERFLOW.COM *.

Which is strong and easy to gives you answers and updates.

الكاتب

Thanks I look on tool module and try to solve my question........Thanks again for ur reply....and if u find any good answer for me then please post it here....

Yours welcome.