Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
746 Visninger

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

Avatar
Kassér
Forfatter Bedste svar

<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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
feb. 24
1147
2
jun. 25
8649
4
maj 25
2484
2
maj 25
5832
1
mar. 25
1661