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

`<td t-att-style="'width:30%;' if is_stressed else 'width:25%;'"> <b> Sales </b> </td>`

i am converting this to 

<td t-if="is_stressed" style="width:30%;"> <b> Sales </b> </td> 

<td t-elif="not is_stressed" style="width:25%;"> <b> Sales </b> </td>

but its saying i cannot use owl directives in arch xml view

how to correct this?

アバター
破棄
著作者 最善の回答

<t t-if="is_stressed"> 

​<td style="width:60%;">

​ <b>Sales</b> 

​</td> 

</t> 

<t t-elif="not is_stressed"> 

​<td style="width:40%;"> 

​<b>Sales</b>

​</td> 

</t>`

this gives the same error

アバター
破棄
関連投稿 返信 ビュー 活動
0
2月 24
1150
2
6月 25
8657
4
5月 25
2488
2
5月 25
5848
1
3月 25
1677