Ravi Gadhia (OpenERP) has proposed merging
lp:~openerp-dev/openobject-client/trunk-bug-844064-rga into
lp:openobject-client.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
Related bugs:
Bug #844064 in OpenERP GTK Client: "attrs not working within a group with
nested notebooks"
https://bugs.launchpad.net/openobject-client/+bug/844064
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-844064-rga/+merge/78541
--
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-844064-rga/+merge/78541
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client/trunk-bug-844064-rga.
=== modified file 'bin/widget/view/form.py'
--- bin/widget/view/form.py 2011-10-03 10:14:48 +0000
+++ bin/widget/view/form.py 2011-10-07 05:30:29 +0000
@@ -377,13 +377,18 @@
nb.set_current_page(i)
focus_widget.widget.grab_focus()
children_notebooks = page.get_children()
+ def check_frame_children(frame):
+ for x in frame.get_children():
+ if isinstance(x, gtk.Table):
+ for y in x.get_children():
+ if isinstance(y, gtk.Frame):
+ check_frame_children(y)
+ if isinstance(y, gtk.Notebook):
+ self.set_notebook(model, y)
+
for child in children_notebooks:
if isinstance(child, gtk.Frame):
- for x in child.get_children():
- if isinstance(x, gtk.Table):
- for y in x.get_children():
- if isinstance(y, gtk.Notebook):
- self.set_notebook(model, y)
+ check_frame_children(child)
if isinstance(child, gtk.Notebook):
self.set_notebook(model, child)
# attrs eval only when call from display not at time of set_cursor call
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp