[REF] Changed seek(0) to flush when manipulating files and reordered the impors
[MERGE] trunk
[WIP] Refactoring report module to avoid using request in OpenERP models : the generation of the html/pdf is now done on the model side and not on the controller side anymore => it is possible to generate a pdf python-side without making a request to an url, request that can be refused because of access right in the request object at this precise moment
[FIX] email_template now use the new get_pdf method on the report model in order to avoid the blocking bug of generating a pdf with a public request.session
[FIX] Reports not using the generic controller should not declare a controller anymore. They are now openerp models and are availabel either trough openerp model 'report' with get_html, get_pdf or through a controller. Adapted report_vat this way.
[FIX] get_pdf can be called on is own (no need to call get_html before on particular controller-report) and make the multiple ids work
[FIX] Adapted mrp bom structure (exit controller, added model)
[FIX] fix the print purchase button
[FIX] Multiple improvements in report including giving formatlang a cursor and a uid via a lambda method, cleaning of some comments and restoring the page numbering
[MERGE] trunk
[FIX] Multiples fixes: correct context passing, changed osv.Model to osv.AbstractModel to avoid creating tables in database when the model use for the reports contains only method
[FIX] Correctly separate website variable between report and website_report layouts
[FIX] ir_http website postprocess args: do not redirect if the only difference between the url and the post-processed url is the url-enconding of some characters
[FIX] Added the decorator website on the get_file route, correctly pass the context on the mrp bom structure and allow to install report module without pypdf installed
[MERGE] trunk
[IMP] Multiple improvements: eval_param is set on the controller, the subprocess to get the version of wkhtmltopdf is only open at OpenERP start, better exceptions handling (try to avoid exceptions shallowing) and the rpc call from the webclient to know the version of wkhtmltopdf is only done once
[FIX] fixed the report type 'controller', fixed the report_vat_xls route
[FIX] removed 'debugger' statement
[REF] Moved qweb contact from website to base and removed the from_html method (it never worked)
[MERGE] trunk