Skip to Content
Menú
This question has been flagged
1 Respondre
256 Vistes

I have created a custom web form in Odoo and inherited a model to create Boolean fields.



in the webform I created a div.



I want to show this only if the is_incharge_sign is true.

I tried below but it is not working.



what I'm doing wrong here?

Avatar
Descartar
Best Answer

Hi,


Try the following code.



<t t-if="record.is_incharge_sign">

    <div class="mb-4">

        <t>

            <h4>Dispatch In-Charge</h4>

            <a class="btn btn-primary" data-bs-toggle="modal"

               data-bs-target="#modal_dispatch">Sign</a>

        </t>

    </div>

</t>


Hope it helps

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de juny 24
1888
1
d’abr. 24
1062
0
d’oct. 23
1841
1
de juny 23
2079
0
d’oct. 22
7