How to print images in Custom QWeb reports in Odoo?

后端 未结 4 1931
孤街浪徒
孤街浪徒 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:43

    
        
          
        
    
    
    • QWeb has an iteration directive foreach which take an expression returning the collection to iterate on, and a second parameter t-as providing the name to use for the "current item" of the iteration:
    • In I access Image of product_id using pack.operation
    • You can select size of image like: image_small and image_medium

提交回复
热议问题