تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5972 أدوات العرض

<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>

الصورة الرمزية
إهمال
أفضل إجابة

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: Thanks for pointing my typo mistake, updated my answer.:)

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 20
7169
Picture in report تم الحل
1
فبراير 16
3418
1
مارس 15
5618
0
مارس 15
4238
0
يونيو 15
3741