Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Replace stock inventory report

By
E.M.
on 11/5/15, 5:25 PM 712 views

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/5/15, 5:25 PM
Seen: 712 times
Last updated: 11/5/15, 5:25 PM