要了解創建模塊,我做了odoo教程,該教程是創建示例模塊的指南 - 此報告適用。Odoo 8 qweb報告,不斷收到錯誤「QWebTemplateNotFound:系統中找不到外部ID」
我跟着完全相同的步驟來創建我的模塊中的報告,它不工作,通過報告URL訪問時,我不斷收到此錯誤:
「QWebTemplateNotFound:在系統中沒有發現外部標識:pprepair.report_idtest_name「。
我看到這個問題,它可能是我使用的版本中的一個錯誤,所以我更新到最近發佈的Odoo 9,但仍然得到相同的錯誤。不同的文字,但同樣的問題:ID找不到。
我檢查了設置和報告。所以它被創建正確,但不知何故,它無法訪問。
也許我錯過了一些。
附加是我的代碼,請幫忙。
<openerp>
<data>
<report
id="report_idtest"
model="pprepair.ppmain"
string="Ppreport"
report_type="qweb-pdf"
name="pprepair.report_idtest_name"
/>
<template id="report_idtest_name">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="report.external_layout">
<div class="page">
<h2>Report title</h2>
</div>
</t>
</t>
</t>
</template>
</data>
</openerp>
也許你沒有安裝python-passlib包----> sudo易於得到安裝python-passlib –
passlib安裝 – aydunno