UNable to print label with the module label from serpents

Bug #1434522 reported by David
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Server Environment And Tools
Invalid
Undecided
Unassigned

Bug Description

I have installed latest version for wkhtmltopdf , and configured a label for product.

When i click on the print button I can see the next error log:

  Webkit error
The command 'wkhtmltopdf' failed with error code = 1. Message: The following diagnosis message was provided:
Invalid argument(s) parsed to --margin-top

Name:
  wkhtmltopdf 0.12.2.1 (with patched qt)
.
.
.
--description of module------DELETED
.
.
.

Traceback (most recent call last):
  File "/opt/odoo/odoo-server/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/odoo/odoo-server/openerp/service/web_services.py", line 660, in dispatch
    res = fn(db, uid, *params)
  File "/opt/odoo/custom/addons/extras/report-print-send/base_report_to_printer/report_service.py", line 72, in exp_report_get
    res = super(virtual_report_spool, self).exp_report_get(db, uid, report_id)
  File "/opt/odoo/odoo-server/openerp/service/web_services.py", line 766, in exp_report_get
    return self._check_report(report_id)
  File "/opt/odoo/odoo-server/openerp/service/web_services.py", line 744, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File "/opt/odoo/odoo-server/openerp/netsvc.py", line 71, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'Webkit error', u"The command 'wkhtmltopdf' failed with error code = 1. Message: The following diagnosis message was provided:\nInvalid argument(s) parsed to --margin-top\n\nName:\n wkhtmltopdf 0.12.2.1 (with patched qt)\n\nSynopsis:\n wkhtmltopdf [GLOBAL OPTION]... [OBJECT]... <output file>\n \nDocument objects:\n wkhtmltopdf is able to put several objects into the output file, an object is\n either a single webpage, a cover webpage or a table of content. The objects\n are put into the output document in the order they are specified on the\n command line, options can be specified on a per object basis or in the global\n options area. Options from the Global Options section can only be placed in\n the global options area\n\n A page objects puts the content of a singe webpage into the output document.\n\n (page)? <input url/file name> [PAGE OPTION]...\n Options for the page object can be placed in the global options and the page\n options areas. The applicable options can be found in the Page Options and \n Headers And Footer Options sections.\n\n A cover objects puts the content of a singe webpage into the output document,\n the page does not appear in the table of content, and does not have headers\n and footers.\n\n cover <input url/file name> [PAGE OPTION]...\n All options that can be specified for a page object can also be specified for\n a cover.\n\n A table of content object inserts a table of content into the output document.\n\n toc [TOC OPTION]...\n All options that can be specified for a page object can also be specified for\n a toc, further more the options from the TOC Options section can also be\n applied. The table of content is generated via XSLT which means that it can be\n styled to look however you want it to look. To get an aide of how to do this\n you can dump the default xslt document by supplying the\n --dump-default-toc-xsl, and the outline it works on by supplying\n --dump-outline, see the Outline Options section.\n\nDescription:\n Converts one or more HTML pages into a PDF document, using wkhtmltopdf patched\n qt.\n\nGlobal Options:\n --collate Collate when printing multiple copies (default)\n --no-collate Do not collate when printing multiple copies\n --copies <number> Number of copies to print into the pdf file (default 1)\n -H, --extended-help Display more extensive help, detailing less common command switches\n -g, --grayscale PDF will be generated in grayscale\n -h, --help Display help\n --license Output license information and exit\n -l, --lowquality Generates lower quality pdf/ps. Useful to shrink the result document space\n -O, --orientation <orientation> Set orientation to Landscape or Portrait (default Portrait)\n -s, --page-size <Size> Set paper size to: A4, Letter, etc. (default A4)\n -q, --quiet Be less verbose (default)\n --read-args-from-stdin Read command line arguments from stdin\n --title <text> The title of the generated pdf file (The title of the first document is used if not specified)\n -V, --version Output version information and exit\nPage Options:\n --print-media-type Use print media-type instead of screen\n --no-print-media-type Do not use print media-type instead of

Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

If you have a problem with a module in server-tools, please report the bug in the new repository on Github.
https://github.com/OCA/server-tools
Plz indicate the module, the milestone (7.0, 8.0, etc...)

Seeing the log, I guess that this is more a problem of wkhtmltopdf compatibility...

Kind Regards.

Changed in server-env-tools:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.