跳至内容
菜单
此问题已终结
1 回复
766 查看

`<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
8658
4
5月 25
2495
2
5月 25
5853
1
3月 25
1683