Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
193 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
juin 24
1863
1
avr. 24
1040
0
oct. 23
1808
1
juin 23
2071
0
oct. 22
7