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

Impacted versions: 11

Steps to reproduce:
Create a custom module just to add a qweb report (in my case I tested account.invoice, res.partner, res.users)
Here is my code:

<odoo>
    <data>
        <template id="my_module.other_report_template">
            <t t-call="web.html_container">
                <t t-foreach="docs" t-as="o">
                    <t t-call="web.external_layout">
                        <div class="page">
                            This is a test report
                        </div>
                    </t>
                </t>
            </t>
        </template>

        <report
                id="other_report"
                model="account.invoice"
                string="Ohter Report"
                report_type="qweb-pdf"
                name="my_module.other_report_template"
                file="my_module.other_report_template"/>
    </data>
</odoo>

Current behavior:
When I click on Ohter Report under print I get the following error:
Record does not exist or has been deleted

And sometimes odoo tries to recreate the reportand gives me another error when I try to update the module(does happen from time to time):

Record with external id my_module.other_report_template already exists in ir.actions.report


Expected behavior:
Print the report

 

形象
丢弃
相关帖文 回复 查看 活动
3
9月 19
7545
0
1月 24
1710
0
1月 24
1418
2
7月 22
9244
0
2月 22
2546