gpt4 book ai didi

Odoo 10 - Qweb t-if t-else 语法

转载 作者:行者123 更新时间:2023-12-02 11:13:41 31 4
gpt4 key购买 nike

我不知道 qweb 中 if-else 的正确语法是什么。

<t t-if="origin != l.origin">
<td>foo</td>
<t t-else/>
<td>bar</td>
</t>

这里出了什么问题?

最佳答案

您必须使用<t t-else=""><td>bar</td></t> ,看看documentation .

关于Odoo 10 - Qweb t-if t-else 语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48069105/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com