Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
752 Vues

`<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
Ignorer
Auteur Meilleure réponse

<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
Ignorer
Publications associées Réponses Vues Activité
0
févr. 24
1149
2
juin 25
8655
4
mai 25
2487
2
mai 25
5847
1
mars 25
1672