跳至內容
選單
此問題已被標幟
1 回覆
147 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
6月 24
1814
1
4月 24
998
0
10月 23
1768
1
6月 23
2052
0
10月 22
7