Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
761 Visualizações

`<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
Cancelar
Autor Melhor resposta

<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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
fev. 24
1150
2
jun. 25
8658
4
mai. 25
2493
2
mai. 25
5851
1
mar. 25
1679