Skip to Content
Menu
This question has been flagged
1 Atsakyti
745 Rodiniai

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

Portretas
Atmesti
Autorius 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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
vas. 24
1147
2
birž. 25
8649
4
geg. 25
2484
2
geg. 25
5831
1
kov. 25
1661