Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
151 Переглядів

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
1815
1
квіт. 24
1001
0
жовт. 23
1771
1
черв. 23
2056
0
жовт. 22
7