如何在 Odoo 9 的 qweb 模板中的 t 字段中使用 OR 条件?

How to use OR condition in t-field in qweb template in Odoo 9?

我正在 Odoo 9 qweb 模板中处理报告模板,我需要在 t 字段中使用 OR 逻辑运算符从我创建的两个字段之一获取数据想在我的报告中打印它们的价值。我可以在 t-field 中使用 OR 或者我应该使用带有不同跨度标签的 t-if 吗?

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