Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1503 Widoki

hello ...

I want to hide element from odoo template  How do this 

odoo 15


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć