← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704870] Re: IOError (file not found) with webkit invoice on Windows

 

I solved my last problem : on windows you have to open the pdf file with
the "rb" option if you want pypdf to handle it properely.

So if you want all this to work on windows :

* the path of html files shouldn't be single quoted
* you should use Subprocess.popoen to launch wkhtmltopdf
* you have to open the pdf file to return it to the client with the "rb" option

Sorry to not giving a patch but I don't have the tools to do that at
work (I am not developper in everyday job...)

HTH

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/704870

Title:
  IOError (file not found) with webkit invoice on Windows

Status in OpenERP Modules (addons):
  Won't Fix

Bug description:
  When using webkit for invoice report on windows and openerp v6rc2, the process fail with a "file not found error" (the generated pdf file is not found).
  I tried this with wkhtmltopdf 0.9.9 and 0.10 without success.
  Interestingly if you check the debug option in webkit report you get the html version correctly generated.





References