Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
2407 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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


Awatar
Odrzuć
Autor

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)

Najlepsza odpowiedź

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.


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 25
877
2
lip 25
1026
1
lip 25
2127
3
kwi 25
2053
3
kwi 25
3105