Amit Parik (OpenERP) (amp-openerp) has assigned this bug to you for OpenERP GTK 
Client:

When you define submenu in act_window the path to load icon is wrong.

here a patch proposed


=== modified file 'bin/widget/view/form.py'
--- bin/widget/view/form.py     2011-01-13 06:54:27 +0000
+++ bin/widget/view/form.py     2011-12-13 05:03:51 +0000
@@ -112,7 +112,7 @@
             for sub in eval(submenu):
                 sbutton = gtk.Button()
                 icon = gtk.Image()
-                file_path = os.path.realpath("icons")
+                file_path = os.path.realpath("bin/icons")
                 iname = sub.get('icon', 'terp-marketing').split('-')[1]
                 pixbuf = gtk.gdk.pixbuf_new_from_file(file_path + '/' + iname 
+ '.png')
                 icon_set = gtk.IconSet(pixbuf)

** Affects: openobject-client
     Importance: Low
     Assignee: OpenERP sa GTK client R&D (openerp-dev-gtk)
         Status: Confirmed


** Tags: client submenu
-- 
icon path wrong with submenu
https://bugs.launchpad.net/bugs/903553
You received this bug notification because you are a member of OpenERP sa GTK 
client R&D, which is a bug assignee.

_______________________________________________
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

Reply via email to