[6.0rc1] can't open pop-up form on one2many list on windows client v6 rc1

Bug #663018 reported by Diego Abad
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
High
Naresh(OpenERP)

Bug Description

Windows client gets this error when I try to open a form, this error
is related to save and close and save and new buttons on the form.

Detailed error:

Traceback (most recent call last):
  File "widget\view\form_gtk\one2many_list.pyo", line 356, in _sig_edit
  File "widget\view\form_gtk\one2many_list.pyo", line 65, in __init__
AttributeError: 'gtk.Dialog' object has no attribute 'get_action_area'

IMHO, I think the solution is port client to python 2.6 and pygtk2.14>=

See this related bug,
https://bugs.launchpad.net/openobject-client/+bug/640335

Related branches

summary: - windows client v6 rc1 error
+ [6.0rc1] windows client v6 rc1 error
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote : Re: [6.0rc1] windows client v6 rc1 error

Reproduced.. one2many_lists can't be opened in pop-ups for adding new or editing existing lines on Windows anymore.
We might have a simpler fix by not using get_action_area() in the first place.

Partial workaround for editing: switch to form view directly in the o2m widget by clicking on the switch icon.

Changed in openobject-client:
assignee: nobody → Stephane Wirtel (OpenERP) (stephane-openerp)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello Everyone,

Here is a quick patch for the gtk client....

Thanks

Changed in openobject-client:
status: Confirmed → In Progress
assignee: Stephane Wirtel (OpenERP) (stephane-openerp) → nch(OpenERP) (nch-openerp)
summary: - [6.0rc1] windows client v6 rc1 error
+ [6.0rc1] can't open pop-up form on one2many list on windows client v6
+ rc1
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

It's due to the version of pygtk2.14. it requires pygtk >=2.14

Revision history for this message
Diego Abad (dabada83) wrote :

I compile windows client whit pygtk 2.16 and works with get_action_area

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

@Diego, how do you install the gtk.glade library ? Because I have a problem with the last version of pygtk 2.16 :/

Revision history for this message
Diego Abad (dabada83) wrote :

I use pygtk+glade installer.
http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.16/pygtk-2.16.0+glade.win32-py2.6.exe

I change setup.py to add gtk.glade python package and gio on gtk required libs

Revision history for this message
Diego Abad (dabada83) wrote :

I'm uploading my dependencies installers files to a ftp server

Revision history for this message
Diego Abad (dabada83) wrote :

My installer and archives to compile client with pygtk-2.16 are on:

http://solid-ec.org/openobject-installer/

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

As it is difficult to test RC1 without being able to open m2o on windows a fixed "6.0-RC1-1" build for windows has been uploaded on www.openerp.com/downloads - so you don't have to wait for the fix.

Diego, thanks a lot for the feedback on the packaging as well!

Changed in openobject-client:
status: In Progress → Fix Released
milestone: none → 6.0-rc2
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Thank you

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.