Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
1513 Vues

hello ...

I want to hide element from odoo template  How do this 

odoo 15


Avatar
Ignorer
Meilleure réponse

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

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

Avatar
Ignorer