Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoice footer missing in v8 pdf #2907

Closed
mhapponen opened this issue Oct 4, 2014 · 31 comments
Closed

Invoice footer missing in v8 pdf #2907

mhapponen opened this issue Oct 4, 2014 · 31 comments
Assignees

Comments

@mhapponen
Copy link

When printing invoice pdf the footer is not printed even if in the Preview in the Company data you can see it perfectly ok. I checked #1105 but looks like the issue is somewhat different as I only have problem with the footer and even the preview is fine.

@sle-odoo
Copy link
Contributor

sle-odoo commented Oct 6, 2014

Hello,
The preview concerns the rml engine, not the qweb one (default in v8).
Don't you have any issue with the header?
On what platform does your odoo install run? What wkhtmltopdf version do you use?

Thanks

@sle-odoo sle-odoo self-assigned this Oct 6, 2014
@bbn-bernard
Copy link

My environment

  • wkhtmltopdf 0.12.1-9615f00 (with patched qt)
  • windows 8.1 64bit

I test in 8843974 and it has similar issue in wkhtmltopdf issue. I believe this issue affect not only invoice report, but all report generated by wkhtmltopdf.
I don't see issue in the header as the image is shown.

@sle-odoo
Copy link
Contributor

sle-odoo commented Oct 7, 2014

hello,
i already read some issues concerning the footer on the windows wkhtmltopdf binary. Could you try with the other wkhtmltopdf release (32bits if you're using the 64bits one) ?

thanks

@bbn-bernard
Copy link

I tried the 32 bit of wkhtmltopdf and the result is the same. So both 32 and 64 bit of wkhtmltopdf produce no footer in windows 8.1 64bit.

Then I also test in Centos 6.5 64bit with wkhtmltox-0.12.1-1.x86_64. The result is like the following image.
report

@mhapponen
Copy link
Author

Hi,

Here also

  • 0.12.1 (with patched qt)
  • windows 8.1 64bit

Br,
Marko

Marko Happonen
Partner
Sprintit Oy Ltd.

Kaisaniemenkatu 13 A
00100 Helsinki, Finland
+358 50 352 3296
marko.happonen@sprintit.fi
www.sprintit.fi

ERP MADE EASY
Missiomme on kehittää asiakkaidemme kilpailukykyä tietojärjestelmien
avulla. Tietojärjestelmät eivät kuitenkaan ole meille itsetarkoitus, vaan
kehitystyö alkaa aina asiakkaan liiketoiminnan syvästä ymmärryksestä.
Meillä on kymmenien vuosien kokemus suomalaisten yritysten prosesseista ja
niitä tukevista tietojärjestelmistä.

2014-10-07 12:35 GMT+03:00 bbn-bernard notifications@github.com:

I tried the 32 bit of wkhtmltopdf and the result is the same. So both 32
and 64 bit of wkhtmltopdf produce no footer in windows 8.1 64bit.

Then I also test in Centos 6.5 64bit with wkhtmltox-0.12.1-1.x86_64. The
result is like the following image.
[image: report]
https://camo.githubusercontent.com/4a0a229dd32e987f025e823fa80092aa26409262/68747470733a2f2f692e696d6775722e636f6d2f59575747784c412e706e67


Reply to this email directly or view it on GitHub
#2907 (comment).

@mamolas
Copy link

mamolas commented Oct 8, 2014

The same bug here, Win 8 64b, then I tried on Ubuntu 14.04 and it started working fine, then suddenly, without made any change nor update, it lost footer, header and CSS, like #1105 Is there a fix? (Odoov8 20141007 - latest wkhtmltopd from wkhtmltopd.org)

@sle-odoo
Copy link
Contributor

sle-odoo commented Nov 6, 2014

@damodaranudas try to set the report.url key to an internal URL, as http://127.0.0.1:8069

About the issue on Windows, i can't confirm it but it definitely looks like a wkhtmltopdf issue, so you if you can reproduce the issue consistently then you can open an issue on their github: https://github.com/wkhtmltopdf/wkhtmltopdf, it may help them to fix it.

Regards

@sle-odoo sle-odoo closed this as completed Nov 6, 2014
@ttwhy
Copy link

ttwhy commented Dec 7, 2014

@bbn-bernard you will get the "boxes" instead of real characters, if you rendering system (in this case the odoo server) does not provide the required font's.

@FusionMK
Copy link

A couple of days ago I wasn't able to print an invoice at all with my error, and it ended up working fine as noted, however since then all settings are the same regarding wkhtmltopdf and only updated odoo and no footer now. I tried overriding the error by inserting the footer in defferent locations within the external_layout view however it never gets read. I inserted the code as part of the header just to check code issues and it gets inserted as part of the header with out any issue. -=
report.external_layout_header" (if added inside the header it shows up)
t t-raw="0" (also tried adding bellow line just before this line with no luck)
t t-call="report.external_layout_footer (I tried adding the code here instead of the function and still nothing)
Tried with custom and footer as well as regular and no change. Not sure where else I can insert the actual footer code to bypass the function call . may work if inserted as part of invoice report document however this doesn't seem right.
Running win 7 64 and only change from last couple of days is update odoo to lates version, and nothing else, footer disappeared after that, so it seems like an odoo thing. Tried with wkhtmltopdf 12.2 as well and no difference.
Has anyone tried something that works, any resaults from other users in windows that found a solution?

@diezcode
Copy link

I tested it with wkhtmltopdf 0.12.1 with no problem, with 0.12.2 it doesn't show the footer on the invoice pdf template

@diezcode
Copy link

diezcode commented Feb 4, 2015

The Footer with wkhtmltopdf 0.12.1 and 0.12.2.1 showing at print pdf invoice randomly. 3 times it shows, next time nothing on footer. anybody know anything about this issue?

@sle-odoo
Copy link
Contributor

sle-odoo commented Feb 4, 2015

Hi,
On 0.12.0 and 0.12.1 it should always be displayed. What's your deployment like?

@ghost
Copy link

ghost commented Feb 4, 2015

Hello,

No Footer on
Server : Ubuntu 14.04.1 LTS \n \l (64 bits)
Client : Windows 7 Pro (French) 64 Bits
wkhtmltopdf 0.12.2.1 (with patched qt)

When I generate an INVOICE PDF - The font is ... hugly
Do you know How to change that horrible font ?

Thank you

@laurenturbain
Copy link

Same Bug...
I downgrade wkhtmltopdf to the version 0.12.0. No more problem with footer!

@yannprada
Copy link
Contributor

@laurenturbain How did you downgrade to 12.0.0 ?
Nevermind, just found it (download v12.0.0, extract, put the bin/wkhtmltopdf into /usr/bin)

@IsNull
Copy link

IsNull commented Mar 24, 2015

Using the latest Odoo 8 and wkhtmltopdf 0.12.2.1 (with patched qt), I dont get the footer in pdf. It shows up fine in html.

Since I thougt that it might be a regression bug in wkhtmltopdf, I looked up the change log.
I found this one here in 0.12.2:

#1988: fix footer spacing being ignored (and header spacing being used instead)

Maybe this caused it, yet it can be that the footer spacing needs to get adjusted in Odoo...

For now, I go for 0.12.0 in production.

@ghost
Copy link

ghost commented Jun 22, 2015

Was this bug ever fixed?
I have the same problem

@FusionMK
Copy link

FusionMK commented Jun 22, 2015 via email

@sle-odoo
Copy link
Contributor

Hello,
If you are using wkhtmltopdf 0.12.1, the version specified in our deployment documentation, the only known issue with the footer is its random disappearance on some pages (not all) when printing very big pdf (> 1000 pages). The workaround is to inline the javascript in the footer. But in the usual cases, everything is working alright.

On ulterior wkhmltopdf, like 0.12.2.1, there is a known bug with the footers that is currently not fixed and the maintainer is working on it so hopefully it'll be ok in the 0.13 release.

Regards

@ashkulz
Copy link

ashkulz commented Jun 23, 2015

@sle-odoo: wkhtmltopdf/wkhtmltopdf#2183 will be fixed for 0.12.3 and not for 0.13.

@sle-odoo
Copy link
Contributor

glad to hear that 👍

@jose-eezee
Copy link

Yes, I did have the same error, I've downgrade wkhtmltopdf to the version 0.12.0, and it's working!

@ashkulz
Copy link

ashkulz commented Sep 3, 2015

@jose-eezee: did you try using the 0.12.3-dev build? It would be better if you tried with that, instead of downgrading to an older version...

@andylemay
Copy link

Hi Ashkulz
I have the same issue with the invoice headers an footers not working on 0.12.2.1 and a block font issue too.
I am using odoo Version 8.0-20150423 on Ubuntu Linux 14.04.1 LTS 64-bit (rev. 38, hvm)
Above the issues seems to be solved in either wkhtmltopdf 0.12.0 or 0.12.3 however there are no specific deb builds for the those versions.

Update
used 0.12.1 this resolves the footer issue but not the blocky fonts issue.
Any ideas gratefully received.

@rferraton
Copy link

I use odoo V8 on AWS cloud (linux ubuntu /wkhtmltopdf 0.12.3) , I also faced sometimes invoice footer missing in pdf sometimes it works correctly.

I have made a quite interresting test today : I change the type of instance from micro (1vcpu/1GBRAM/disque not EBS optimized --> a slow machine) to a C4.large machine (2 fast vcpu, 4GB Ram, EBS-Optimized disk) :

  • With the first "small" machine, no footer printed on many tries
  • With the second ("bigger" machine) : footer is printed correctly

So i think that performance of the machine could explain why footer is not printed every times with pdf.

I am not sure which ressource (cpu, RAM or disk) is the most influent in this case but i suspect cpu because when i look to nmon screen, cpu is heavily used when a pdf print is launched, there was still free memory available, but for disks it could be more complex to analyze.

@dni
Copy link

dni commented Oct 4, 2018

had the same issue, footer randomly started to disappear, after reading the last comment i looked up the processes on the server and i had a cpu heavy process running and after terminating that process on my aws ec2 instance, the footer is back again! :)

@rferraton
Copy link

had the same issue, footer randomly started to disappear, after reading the last comment i looked up the processes on the server and i had a cpu heavy process running and after terminating that process on my aws ec2 instance, the footer is back again! :)

did you remember the name of the process ?

@dni
Copy link

dni commented Oct 9, 2018

it was not related to odoo at all, just some load on the ec2 micro instance

@rferraton
Copy link

OK which type of ec2 instance do you have?

@dni
Copy link

dni commented Oct 10, 2018

got the t3.micro instance, i know, it doesn't meet the requirements, but it works.... never ran into an issue before this one :)

@rferraton
Copy link

I move to t3 but still have the issue randomly. I think it depend on the activity of the host you are and this depend on the hour of the day...

joao-p-marques pushed a commit to Tecnativa/odoo that referenced this issue Sep 28, 2021
[FIX] account: Check parent in order to fill the data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests