We're going to implement the digital signature by using custom widgets in odoo 8. We've captured sign into the image . But, the problem we're facing right now is how to save the image of signature (defined in widget template .xml) in database.
<img id="imgb64" style="width:300px;height:150px"> </img>
In view of this module, widget is defined as binary field..
<field name="signature_image" widget="signature"/>
Is it possible to link up this image to database from .js file of widget?
Thanks in advance.
We're implementing digital signature. Firstly, I've created custom widget named "signature". In this widget, Activex object is used. one <textarea>(to display several msg) and <img>(to display captured sign)also defined in widget template(.xml).
I've already defined one binary field "signature_image" in main module and view(form view) is also created as above.
But , How to save this <img> into database? When save button is clicked image is not saved. Is it possible to communicate this <img> defined in widget template file with database or with .py file?
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
|Asked: 7/17/15, 6:24 AM|
|Seen: 1018 times|
|Last updated: 8/28/15, 11:57 AM|