İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
173 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Haz 24
1817
1
Nis 24
1005
0
Eki 23
1774
1
Haz 23
2057
0
Eki 22
7