gpt4 book ai didi

odoo-8 - 奥多 : How to get the company infos in qweb report?

转载 作者:行者123 更新时间:2023-12-03 21:44:57 28 4
gpt4 key购买 nike

如何在 qweb 报告中获取公司信息?我已经添加了

<t t-call="report.external_layout">
--------------
--------------
<span t-field="company.partner_id.street"/>
</t>

到我的报告,但我得到这个错误

QWebException:“‘NoneType’对象在评估时没有属性‘partner_id’”'公司.partner_id'

最佳答案

你可以像下面这样得到所有的公司信息

<span t-esc="o.company_id.name"/>
<span t-esc="o.company_id.street"/>
<span t-esc="o.company_id.city"/>
<span t-esc="o.company_id.state_id.name"/>
<span t-esc="o.company_id.zip"/>

<span t-field="res_company.partner_id.name"/>
<span t-field="res_company.partner_id.street"/>
<span t-field="res_company.partner_id.city"/>

关于odoo-8 - 奥多 : How to get the company infos in qweb report?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42371424/

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