Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
1528 Ansichten

hello ...

I want to hide element from odoo template  How do this 

odoo 15


Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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

Avatar
Verwerfen