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

Product Image resize in PDF report in sale.order.document view

By
Shubham Rana
on 6/9/16, 6:09 AM 275 views

<td style="width:10%;height:10%"><div class="row-md-10">

<span t-field="l.name"/>

<div class="col-md-10" colspan="5">

<span t-field="l.product_id.image_medium" t-field-options="{&quot;widget&quot;: &quot;image&quot;, &quot;class&quot;: &quot;img-rounded&quot;,&quot;size&quot;:[20,20]}" /></div></div>

</td>

0
Santanu Singh
On 6/9/16, 7:16 AM

Hello Shubham,


  <div class="col-xs-12"><center>

<img t-if="o.image" t-att-src="'data:image/png;base64,%s' % o.image" style="max-height: 120px;max-width: 100px;"/></center>

</div>Try this.



Didn't you mean "max-width" instead of "max-weight"?

Ermin Trevisan
on 6/9/16, 8:19 AM

@Ermin Trevisan: Thanks for pointing my typo mistake, updated my answer.:)

Santanu Singh
on 9/14/16, 10:39 AM

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

1 follower(s)

Stats

Asked: 6/9/16, 6:09 AM
Seen: 275 times
Last updated: 6/9/16, 7:16 AM