icon path wrong with submenu

Bug #903553 reported by Cristian Salamea
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Committed
Low
OpenERP sa GTK client R&D

Bug Description

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)

Tags: client submenu

Related branches

Revision history for this message
Cristian Salamea (ovnicraft) wrote :
Amit Parik (amit-parik)
Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Cristian,

Thanks for contribution!

It has been fixed on lp:~openerp-dev/openobject-client/trunk-bug-903553-amp branch with following rev no and rev Id.

Rev No : 2060
rev Id : <email address hidden>

Thank you!

Changed in openobject-client:
status: Confirmed → Fix Committed
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.