Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
1511 Visualizzazioni

hello ...

I want to hide element from odoo template  How do this 

odoo 15


Avatar
Abbandona
Risposta migliore

Hi,

You can use the <t-if> to hide elements from the template

example:

<t t-if="myTimeSheet">
          <div class="timesheet_mainHead" >

                Hi Demo Div
         </div>
 </t>


In the above example whenever the "if" condition satisfies then only the <div> will be visible

Hope it helps

Avatar
Abbandona
Risposta migliore

use t-if condition condition based on your requirement to hide template elements.

Avatar
Abbandona