跳至内容
菜单
此问题已终结
2 回复
1520 查看

hello ...

I want to hide element from odoo template  How do this 

odoo 15


形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

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

形象
丢弃