Skip to Content
Menu
This question has been flagged
1 Odpoveď
755 Zobrazenia

`<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
Zrušiť
Autor Best Answer

<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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
feb 24
1150
2
jún 25
8657
4
máj 25
2488
2
máj 25
5848
1
mar 25
1677