跳至内容
菜单
此问题已终结
3519 查看

Hi, I am trying to replace the existing stock inventory report with a customized one.

Unfortunatelly I am not being able to replace the existing report and I am getting the following error while trying to get the PDF. I suspect the new report is not being properly registered.

File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_qweb.py", line 199, in get_template
raise QWebTemplateNotFound("Template %r not found" % name, template=origin_template)
QWebTemplateNotFound: Template u'stock.report_inventory' not found


I have tried:

<openerp>
<data>
... customized report from standard stock report inventory ...

<report
id="stock.report_inventory"
model="stock"
string="Inventario"
report_type="qweb-pdf"
name="custom_reports.stockinventory_custom"
/>
<record id="stock.report_inventory" model="ir.actions.report.xml">
<field name="paperformat_id" ref="custom_reports.A4_smallmargin"/>
</record>

</data>
</openerp
形象
丢弃
相关帖文 回复 查看 活动
15
11月 20
14934
2
9月 24
1909
2
4月 23
8504
0
3月 23
2552
0
5月 22
2232