Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5960 Представления

<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.:)

Related Posts Ответы Просмотры Активность
1
июл. 20
7130
Picture in report Решено
1
февр. 16
3395
1
мар. 15
5618
0
мар. 15
4201
0
июн. 15
3714