Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
788 Prikazi

`<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
Opusti
Avtor 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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
feb. 24
1158
2
jun. 25
8680
4
maj 25
2510
2
maj 25
5866
1
mar. 25
1689