Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
2403 Visninger

Hello everyone, for a few days I have been having this problem that I can't figure out where it comes from when to date, it always worked correctly for me.
The thing is that when I ask to generate the invoice in pdf, it doesn't show me the company data or the footer.
I have tried to modify the company data, change the invoice template, send it by email or print to pdf. The result is the same and the truth is that I am very blocked and lost.
Thanks to anyone who can help me on this issue.

Avatar
Kassér
Forfatter Bedste svar

Thanks for the answers, the fact is that it does generate the pdf, but not with the data that does appear in the preview, it is as if in the invoice, it could not take the data that does appear in the configuration and is seen in the preview pdf.
And now, have this:

OwlError: Invalid prop suffix


Avatar
Kassér
Forfatter

As of today, the error is escalating upwards, it starts to worry me because I am not able to repair it even if I have installed odoo from scratch and recovering some of the backup copies, both in copy and move mode:
OwlError: Invalid prop suffix
at CodeGenerator.formatProp (http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1750:12)
at http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1752:68
at Array.map (<anonymous>)
at CodeGenerator.formatPropObject (http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1752:50)
at CodeGenerator.compileComponent (http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1755:113)
at CodeGenerator.compileAST (http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1648:558)
at CodeGenerator.compileTDomNode (http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1683:368)
at CodeGenerator.compileAST (http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1648:140)
at CodeGenerator.compileTIfBranch (http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1699:101)
at CodeGenerator.compileTIf (http://sinzg.local:8069/web/assets/706-a2ad239/web.assets_common.min.js:1703:59)

Bedste svar

Hey,

There can be an issue of wkhtmltopdf version you should match it with the appropriate version's requirement.txt version.
Also you can check one more thing first : the report.url should be set to http://localhost:8069.


Avatar
Kassér
Bedste svar

Hi,

Try like following

You can add a template for the company details and call that from your report template

<template id="report_session">
            <t t-call="report.html_container">
                <t t-foreach="docs" t-as="doc">
                    <t t-call="report.external_layout">
                    </t>
                </t>
            </t>
</template>

In reports/views/layouts.xml:

<template id="external_layout">
    <!-- Multicompany -->
    <t t-if="o and 'company_id' in o">
 <t t-set="company" t-value="o.company_id"></t>
    </t>
    <t t-if="not o or not 'company_id' in o">
        <t t-set="company" t-value="res_company"></t>
    </t>


    <t t-call="report.external_layout_header" />
    <t t-raw="0" />
<t t-call="report.external_layout_footer" />
</template>


Regards

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jul. 25
876
2
jul. 25
1021
1
jul. 25
2127
3
apr. 25
2052
3
apr. 25
3103