[STAB] jpeg attachemnt locks window

Bug #649929 reported by Grzegorz Grzelak (OpenGLOBE.pl)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Confirmed
Low
Jay Vora (Serpent Consulting Services)
Trunk
Invalid
Undecided
Unassigned

Bug Description

Hello, When I attach jpeg file to any object I have trouble to close Attachment window.

Behaviour is following:
I attach attachment and save. Then I enter into object and open attachment window. The window doesn't show correctly the file name, and doesn't allow to close the window or go to another window clicking any tab. After few trials system asks if save the work and after answering "no" allow to close window. When you browse across the attachments in Administrator-Low Level-Attachemnt using arrows beneath the menu and you encounter the jpeg attachment browse will stop.

Any other attachment work correctly.

When I run GTK client from terminal command (python2.6 openerp-client.py) I see in terminal window the traceback as below.

In web client it works fine. I use Ubuntu 10.04 with python2.6 and Postgres8.4. All OpenERP elements in 5.0.14.

Traceback (most recent call last):
  File "/home/gg/openerp/client/bin/modules/gui/main.py", line 989, in sig_win_close
    self._sig_child_call(args[0], 'but_close', page_num)
  File "/home/gg/openerp/client/bin/modules/gui/main.py", line 1334, in _sig_child_call
    res = wid.handlers[button_name]()
  File "/home/gg/openerp/client/bin/modules/gui/window/form.py", line 441, in sig_close
    return self.modified_save(reload=False)
  File "/home/gg/openerp/client/bin/modules/gui/window/form.py", line 428, in modified_save
    if self.screen.is_modified():
  File "/home/gg/openerp/client/bin/widget/screen/screen.py", line 487, in is_modified
    self.current_view.set_value()
  File "/home/gg/openerp/client/bin/widget/view/form.py", line 333, in set_value
    widget.set_value(model)
  File "/home/gg/openerp/client/bin/widget/view/form.py", line 65, in set_value
    self.widget.set_value(model, model.mgroup.mfields[self.widget_name])
  File "/home/gg/openerp/client/bin/widget/view/form_gtk/char.py", line 45, in set_value
    return model_field.set_client(model, self.widget.get_text() or False)
  File "/home/gg/openerp/client/bin/widget/model/field.py", line 106, in set_client
    model.signal('record-changed', model)
  File "/home/gg/openerp/client/bin/signal_event.py", line 29, in signal
    fnct(self, signal_data, *data)
  File "/home/gg/openerp/client/bin/widget/model/group.py", line 254, in _record_changed
    self.signal('model-changed', model)
  File "/home/gg/openerp/client/bin/signal_event.py", line 29, in signal
    fnct(self, signal_data, *data)
  File "/home/gg/openerp/client/bin/widget/screen/screen.py", line 244, in _model_changed
    self.display()
  File "/home/gg/openerp/client/bin/widget/screen/screen.py", line 567, in display
    self.current_view.display()
  File "/home/gg/openerp/client/bin/widget/view/form.py", line 404, in display
    widget.display(model, state)
  File "/home/gg/openerp/client/bin/widget/view/form.py", line 51, in display
    self.widget.display(model, modelfield)
  File "/home/gg/openerp/client/bin/widget/view/form_gtk/picture.py", line 67, in display
    data = base64.decodestring(data)
  File "/usr/lib/python2.6/base64.py", line 321, in decodestring
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

Revision history for this message
tfr (Openerp) (tfr) wrote :

Unable to reproduce on the V6

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.