I am trying to add some static images to odoo report but it doesn't work for me, I tried to test using existing logo image from installed web module but it doesn't work. This my code :
<image x="1.3cm" y="27.7cm" height="40.0" file="/web/static/src/img/logo.png"></image>
when I try to generate a report, it shows a pop-up error :
type 'exceptions.IOError File /web/static/src/img/logo.png cannot be found in image path handle_pageBegin args=() traceback object at 0x2627DEE0>
I am not sure what's wrong, is there another way to access image files?
Edit: I was following this answer from Odoo official forum: https://www.odoo.com/fr_FR/forum/help-1/question/print-image-in-rml-file-24663