Skip to Content
Menu
This question has been flagged
3465 Views

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

 

Avatar
Discard
Related Posts Replies Views Activity
3
Sep 19
6320
0
Jan 24
419
0
Jan 24
245
2
Jul 22
7407
0
Feb 22
1311