Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
57 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 24
1795
Display only True Boolean fields as tags แก้ไขแล้ว
1
เม.ย. 24
981
0
ต.ค. 23
1753
1
มิ.ย. 23
2050
0
ต.ค. 22
7