Skip to Content
मेन्यू
This question has been flagged
1 Reply
740 Views

`<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
Discard
Author 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
Discard
Related Posts Replies Views Activity
0
फ़र॰ 24
1147
2
जून 25
8649
4
मई 25
2482
2
मई 25
5826
1
मार्च 25
1657