コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5991 ビュー

<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
7月 20
7179
1
2月 16
3446
1
3月 15
5618
0
3月 15
4268
0
6月 15
3773