Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
242 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jun. 24
1879
1
apr. 24
1053
0
okt. 23
1831
1
jun. 23
2077
0
okt. 22
7