add new icons to openerp

Asked by Alberto Garcia (Factor Libre)

How to add new icons to openerp?

thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Jay Vora (Serpent Consulting Services)
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Alberto Garcia (Factor Libre) (agarcia-flibre) said :
#2

For example, icons to include in the principal menu. Instead of terp-crm use other.

Revision history for this message
Best Jay Vora (Serpent Consulting Services) (jayvora) said :
#3

Hello, In the server/bin/tools/misc.py, the icons are defined.

In the client/bin/icons, the customized icons are stored.

example:

1. Copy your image as myimage.png.
2. server/bin/tools/misc.py,, in the icons list, add your icon name as terp-myimage.

Rest is all yours.

Thanks.

Revision history for this message
Alberto Garcia (Factor Libre) (agarcia-flibre) said :
#4

ok, thanks

Revision history for this message
shaik (shaikkalesha24) said :
#5

Iam using openerp version 5.0.1

I tried to add new icons as mentioned above by Mr.Jay.

but i couldnt find the server/bin/tools/misc.py,
i found icons.py in the path "C:\Program Files\OpenERP AllInOne\Web\python25\Lib\site-packages\openerp_web-5.0.1_0-py2.5.egg\openerp\icons.py", in this i included 'terp-myimage.py'.

Its not working.
Can u please help me out, how to add new icons in openerp??

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#6

Hello Shaik,

Here is the solution for windows.

Form the source of OpenERP, (download from openerp.com if you dont have it ) get the file misc.py from server/bin/tools.

Modify the .py file, In the icons list, add the entry 'terp-myfile'.
C:\Program Files\OpenERP AllInOne\Client\Icons . Put your image myfile.png here

Move to, C:\Program Files\OpenERP AllInOne\Server, open the library.zip file with winzip, remove the misc.pyo file.

Add the modified misc.py file into tools folder.

If you cannot add the file, simple extract the library.zip to some folder ,add file to tools and make a zip again .
stop and start the server.

Rest is all yours.

Thank you.

Revision history for this message
shaik (shaikkalesha24) said :
#7

Hello Jay,

Thank you for ur solution.

But, i am unable to find the misc.py in openerp.com to download.

Can u please provide the direct URL to download the misc.py.

Thank you.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#8

Hello,
It would be better and time saving to mail you that file.
Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#9

Can you please tell me your email id?
Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#10
Revision history for this message
shaik (shaikkalesha24) said :
#11

Hello,

My mail id is

<email address hidden>

Revision history for this message
shaik (shaikkalesha24) said :
#12

Hi Jay,

Thank you very much,

Now, iam able to add new icons.

Revision history for this message
shaik (shaikkalesha24) said :
#13

Hi Jay,

How are you?
I need one help from you, i posted one question regarding "SMTP error", the
path is as follows.

http://www.openobject.com/forum/post39261.html#39261

I am unable to solve the problem, can you please look into this and advise
me, how to solve this error.

Thank you.

On Thu, Jul 2, 2009 at 2:31 PM, shaik
<email address hidden>wrote:

> Question #72667 on OpenObject Addons changed:
> https://answers.launchpad.net/openobject-addons/+question/72667
>
> shaik posted a new comment:
> Hi Jay,
>
> Thank you very much,
>
> Now, iam able to add new icons.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

--
Regards,

Shaik Kalesha Vali
Mobile: +91 9052660261

Revision history for this message
gustavo palminha (gustavopalminha) said :
#14

Hello.
I have the windows compiled web client version 5.0.3, and i would like to know if it's possible to change the icons that appear on the left menu.
Can this be done?
Thanks.

Revision history for this message
Navrang Oza (noz-tiny) said :
#15

Hello Gustavo,

You mean to say, icons which appear with modules name ? (Like partners, product, sale etc...)
Do you want to change these icons ???

Thanks...

Revision history for this message
gustavo palminha (gustavopalminha) said :
#16

Hello noz.

What i mean is if its possible to change the icons from the vertical menu toolbar (see here http://img16.imageshack.us/i/menugy.png/) using the windows compiled web client.

Ive build a module, but after creating a menu entry in the vertical menu toolbar i got de default blue icon, so i would like to change this, but i use the windows web client (i would like to add new ones).

Is it possible?

Regards.