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

I'm facing an issue with font consistency in a custom QWeb PDF report for the Purchase Order. The report uses the Myriad Pro font, which is defined via inline styles in the XML.

The problem is that the PDF output is different between my local development machine and the production server.

  1. Local Machine: Renders correctly (appears to be Myriad Pro).
  2. Server: Renders with a different font (it looks compressed/narrower), indicating a font fallback.

Both servers are running the same Odoo version (Odoo 15) and have the same version of wkhtmltopdf installed.

I suspect the font is missing on the production server.


The report template inherits the standard layout like this:

XML

<template id="custom_purchase_report_sparemate" inherit_id="purchase.report_purchaseorder_document">
    <xpath expr="//t[@t-call='web.external_layout']" position="replace">
        <t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
        <t t-call="sparemate_custom_invoice.purchase_layout_sparemate">
            </t>
    </xpath>
</template>

Any guidance on the most robust solution

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 24
2919
0
paź 18
4924
2
gru 19
11107
0
sie 24
1517
0
lis 19
4153