This question has been flagged
1 Reply
4567 Views

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.

Avatar
Discard
Best Answer

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,

Avatar
Discard
Author

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

Author

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.

Author

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.