Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Odoo 版本:11
我在模型“account.payment”中添加了自定义字段:x_mycompany_transcation_id
然后我将其添加到期刊审计报告中:
但是当我尝试打印报告时,它显示了以下错误:
这只是一个经验丰富的疯狂猜测,但foreach在表格行上说aml,这通常意味着 for 循环中的记录是account.move.line您尚未扩展的模型。但是你有扩展模型account.payment。因此,您要么必须扩展正确的模型,要么必须找到另一种方式在报告中显示数据。
foreach
aml
account.move.line
account.payment