← Back to team overview

openerp-india team mailing list archive

[Bug 1098976] Re: Error on print when logo is transparent

 

Attached my logo. Might help to reproduce the problem.

** Attachment added: "Logo with transparant background"
   https://bugs.launchpad.net/openobject-server/+bug/1098976/+attachment/3481465/+files/transparent.png

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1098976

Title:
  Error on print when logo is transparent

Status in OpenERP Server:
  New

Bug description:
  I uploaded a png with a transparent background as a logo. The
  background was not being rendered transparent in the webgui.

  Later on, when I tried to print an invoice, I got the error below. The
  error went away when I  replaced the logo with a jpeg without
  transparent background.

  Same error on "preview header/footer" on company info.

  Running version 7.0alpha-20130112-000101

  OpenERP Server Error
  Client Traceback (most recent call last):
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\web\http.py", line 195, in dispatch
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\web\controllers\main.py", line 1078, in call_kw
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\web\controllers\main.py", line 1070, in _call_kw
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\web\session.py", line 40, in proxy
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\web\session.py", line 28, in proxy_method
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\web\session.py", line 101, in send

  
  Server Traceback (most recent call last):
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\web\session.py", line 87, in send
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\netsvc.py", line 281, in dispatch_rpc
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\service\web_services.py", line 614, in dispatch
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\osv\osv.py", line 169, in execute_kw
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\osv\osv.py", line 123, in wrapper
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\osv\osv.py", line 179, in execute
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\osv\osv.py", line 166, in execute_cr
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\email_template\wizard\mail_compose_message.py", line 72, in onchange_template_id
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\email_template\wizard\mail_compose_message.py", line 123, in generate_email_for_composer
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\openerp\addons\email_template\email_template.py", line 340, in generate_email
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\report_sxw.py", line 442, in create
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\report_sxw.py", line 476, in create_source_pdf
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\report_sxw.py", line 533, in create_single_pdf
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\interface.py", line 206, in create_pdf
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\render\render.py", line 59, in render
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\render\rml.py", line 41, in _render
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\render\rml2pdf\trml2pdf.py", line 1007, in parseNode
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\render\rml2pdf\trml2pdf.py", line 314, in render
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\render\rml2pdf\trml2pdf.py", line 991, in render
    File "reportlab\platypus\doctemplate.pyo", line 877, in build
    File "reportlab\platypus\doctemplate.pyo", line 510, in clean_hanging
    File "reportlab\platypus\doctemplate.pyo", line 757, in handle_flowable
    File "reportlab\platypus\doctemplate.pyo", line 140, in apply
    File "reportlab\platypus\doctemplate.pyo", line 535, in handle_pageBegin
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\render\rml2pdf\trml2pdf.py", line 593, in render
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\render\rml2pdf\trml2pdf.py", line 576, in render
    File "C:\Program Files (x86)\OpenERP 7.0alpha-20130112-000101\Server\server\.\openerp\report\render\rml2pdf\trml2pdf.py", line 509, in _image
    File "reportlab\pdfgen\canvas.pyo", line 857, in drawImage
    File "reportlab\pdfbase\pdfdoc.pyo", line 2086, in __init__
    File "reportlab\pdfbase\pdfdoc.pyo", line 2183, in loadImageFromSRC
    File "reportlab\pdfbase\pdfdoc.pyo", line 2155, in _checkTransparency
    File "reportlab\lib\utils.pyo", line 674, in getTransparent
  AttributeError: 'NoneType' object has no attribute 'data'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1098976/+subscriptions


References