Odoo Help

Welcome!

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

0

Put image not in database shows error

By
GonG
on 2/27/14, 1:48 AM 978 views

I try to put checkbox-unchecked.png image file into the report of purchase_requisition here is my code:

<pageGraphics>
  <image file="img/checkbox-unchecked.png" x="10cm" y="10cm"/>
</pageGraphics>

The folder of the image file is located in the path addons/purchase_requisition/report/img/checkbox-unchecked.png And i'm using windows 7.

The error shows:

cannot identify image file
fileName=<open file u'C:\\Program Files (x86)\\OpenERP 7.0-20140221-003045\\Server\\server\\openerp\\addons\\purchase_requisition\\report\\img\\checkbox-unchecked.png', mode 'r' at 0x042D6D30> identity=[ImageReader@0x675fe90 filename=u'C:\\Program Files (x86)\\OpenERP 7.0-20140221-003045\\Server\\server\\openerp\\addons\\purchase_requisition\\report\\img\\checkbox-unchecked.png']
handle_pageBegin args=()

(<type 'exceptions.IOError'>, IOError("cannot identify image file\nfileName=<open file u'C:\\\\Program Files (x86)\\\\OpenERP 7.0-20140221-003045\\\\Server\\\\server\\\\openerp\\\\addons\\\\purchase_requisition\\\\report\\\\img\\\\checkbox-unchecked.png', mode 'r' at 0x042D6D30> identity=[ImageReader@0x675fe90 filename=u'C:\\\\Program Files (x86)\\\\OpenERP 7.0-20140221-003045\\\\Server\\\\server\\\\openerp\\\\addons\\\\purchase_requisition\\\\report\\\\img\\\\checkbox-unchecked.png']\n handle_pageBegin args=()",), <traceback object at 0x06DE7C38>)

Anyone has anyidea? Thank you very much

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/27/14, 1:48 AM
Seen: 978 times
Last updated: 3/16/15, 8:10 AM