Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
195 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
cze 24
1864
1
kwi 24
1041
0
paź 23
1809
1
cze 23
2071
0
paź 22
7