Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm new to openerp addon development and I'm trying to add functionality to openerp's document management system that allows the user to view pdfs within the browser rather than downloading the pdf which is the default behavior.
The approach I'm aiming to take is to create a custom widget using mozilla's pdf.js library and apply it to a copy of the 'datas' binary field within the document_view.xml on a separate notebook page (after verifying that the document is actually a pdf of course). For example:
... <page string="View Pdf"> <field name="datas" filename="datas_fname" widget="pdfviewer"/> </page>
I've taken a gander at a tutorial suggested on another question (Can't post link due to low karma) but the widget that is created is just a Facebook widget with no obvious (at least to me) interaction with data originally in the field.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/23/13, 3:32 PM|
|Seen: 2433 times|
|Last updated: 3/16/15, 8:10 AM|