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

Every time I generate an invoice the customer name seems to be partially chopped off but their address details show in the top right hand corner of the invoice. Any suggestions as to how to fix?

Awatar
Odrzuć
Najlepsza odpowiedź

If you are using A4 size paper format change the following. It working fine for me.

Top Margin: 45

Bottom Margin: 25

Header Spacing: 40

OuputDPI: 90

Awatar
Odrzuć
Najlepsza odpowiedź

Hello,

It's only due to two reasons

1) Need to increase margin from top

2) Need to configure proper wkhtmltopdf according to odoo version


Thanks and regards

Haresh Kansara

Awatar
Odrzuć
Najlepsza odpowiedź

This is probably due to the report layout margins.

If you have the technical features activated for your user,

1. Go to Settings > Technical > Reports > Paper Formats

2. Open the "European A4" format (Assume your are using this default one)

3. Increment the top margin and Header spacing with the same amount. Example if Top margin was 40mm and Header Spacing 35, then set them respectively to 45mm and 40.

4. Save and print the invoice to verify. If needs be repeat steps 1 to 3 in order to get it right.


Beware: by default, once you print a validated invoice the next time you want to print it again it is a copy of the initial printed invoice that is presented to you.

You need to deactivate this, in order to see the effect of the changed margins:

1. Go to Settings > Technical > Actions > Reports and search for "Invoices"

2. Open the invoice report and make sure to untick the field "Reload from Attachment"

3. Save and try printing a new invoice.

4. When satisfied with the results, do not forget to tick the "Reload from Attachment" checkbox.

I hope this helps.

Awatar
Odrzuć

It could also be that the wrong version of wkhtmltopdf - 0.12.1 seems to be the best version for Odoo v8. See https://www.odoo.com/forum/help-1/question/wkhtmltopdf-0-12-2-1-pdf-reports-are-not-correctly-formatted-on-ubuntu-87756

Powiązane posty Odpowiedzi Widoki Czynność
3
kwi 25
993
3
kwi 25
1720
1
mar 25
1056
2
sty 25
1032
invoice Rozwiązane
1
gru 24
1198