我正在 Odoo 9 qweb 模板中处理报告模板,我需要在 t 字段中使用 OR 逻辑运算符从我想要打印其值的两个字段之一获取数据在我的报告中。我可以在 t-field 中使用 OR 还是应该将 t-if 与不同的 span 标签一起使用?
请您参考如下方法:
The t-field directive can only be used when performing field access (a.b) on a “smart” record (result of the browse method)
你需要像你说的那样使用条件指令t-if。
