How to print images in Custom QWeb reports in Odoo?

后端 未结 4 1902
孤街浪徒
孤街浪徒 2021-01-15 13:15

I would like to display images which are uploaded by users in my custom Qweb reports.

Which is the best way to do that?

4条回答
  •  情话喂你
    2021-01-15 13:39

    If you want to show an image from the database you can just use the image widget like this:

    
    

    And if you want to show an image stored as a file:

    
    

    Note: respect the order and the type of the quotes

提交回复
热议问题