Hello,
I want to add condition to base.xml that if i'm view some model then show me this code.
So i add t-if but it don't work:
my code add to base.xml :
<t t-if="widget.model == 'hr.recruitment.agency.skills'">
<div class="row">
<div class="col-md-6">
<h2>Test</h2>
<p>Test Test Test Test Test Test </p>
</div>
</div>
</t>
in
<t t-name="ControlPanel">
<div class="oe-control-panel">
<div class="container-fluid">
<div class="row">
<div class="col-md-6 oe-cp-title">
<ol class="oe-view-title breadcrumb">
</ol>
</div>
<div class="oe-cp-search-view col-md-6" />
</div>
<div class="row">
<div class="col-md-6 oe-button-column">
<div class="oe-cp-buttons"></div>
<div class="oe-cp-sidebar"></div>
</div>
<div class="col-md-6">
<div class="oe-search-options btn-group"/>
<div class="oe-right-toolbar">
<div class="oe-cp-pager"></div>
<div class="oe-cp-switch-buttons btn-group btn-group-sm"></div>
</div>
</div>
</div>
<t t-if="widget.model == 'hr.recruitment.agency.skills'">
<div class="row">
<div class="col-md-6">
<h2>Test</h2>
<p>Test Test Test Test Test Test </p>
</div>
</div>
</t>
</div>
</div>
</t>
but this depends <t t-if="widget.model == 'hr.recruitment.agency.skills'">
don't work.
Any idea ?