This question has been flagged
7 Replies
39230 Views

Hello,

I'm looking for list of available icons particulary for buttons in GTK for 6.0 version.

I've find the list of them with this command (linux only) :

cd path_of_openerp_addons

find -name *.xml | xargs grep "icon=\"" | awk -F "icon=\"" '{print $2}' | cut -d"\"" -f1 | awk '{if(x[$0] != "") next ; print $0 ; x[$0]=$0}' | sort

but I'm looking for official list,

thanks.

Avatar
Discard
Best Answer

Example to look at:

You can check http://neynt.readthedocs.org/en/latest/stock.html

Open folder with thumbnails

web/7.0/addons/web/static/src/img/icons

Render a html view:

Locally you can build up a HTML view with a script like this (or use a remote website..):

# this is just an ugly start...
location = "http://localhost:8069/web/static/src/img/icons/%s.png"
icon_list = ['STOCK_ABOUT', 'STOCK_ADD', 'STOCK_APPLY', ] # etc etc
for icon in icon_list:
    print "<img src='%s'/>" % (location % icon)

The list: (for the googlers..)

In openerp 7 this seems to be currently:

'STOCK_ABOUT',
'STOCK_ADD',
'STOCK_APPLY',
'STOCK_BOLD',
'STOCK_CANCEL',
'STOCK_CDROM',
'STOCK_CLEAR',
'STOCK_CLOSE',
'STOCK_COLOR_PICKER',
'STOCK_CONNECT',
'STOCK_CONVERT',
'STOCK_COPY',
'STOCK_CUT',
'STOCK_DELETE',
'STOCK_DIALOG_AUTHENTICATION',
'STOCK_DIALOG_ERROR',
'STOCK_DIALOG_INFO',
'STOCK_DIALOG_QUESTION',
'STOCK_DIALOG_WARNING',
'STOCK_DIRECTORY',
'STOCK_DISCONNECT',
'STOCK_DND',
'STOCK_DND_MULTIPLE',
'STOCK_EDIT',
'STOCK_EXECUTE',
'STOCK_FILE',
'STOCK_FIND',
'STOCK_FIND_AND_REPLACE',
'STOCK_FLOPPY',
'STOCK_GOTO_BOTTOM',
'STOCK_GOTO_FIRST',
'STOCK_GOTO_LAST',
'STOCK_GOTO_TOP',
'STOCK_GO_BACK',
'STOCK_GO_DOWN',
'STOCK_GO_FORWARD',
'STOCK_GO_UP',
'STOCK_HARDDISK',
'STOCK_HELP',
'STOCK_HOME',
'STOCK_INDENT',
'STOCK_INDEX',
'STOCK_ITALIC',
'STOCK_JUMP_TO',
'STOCK_JUSTIFY_CENTER',
'STOCK_JUSTIFY_FILL',
'STOCK_JUSTIFY_LEFT',
'STOCK_JUSTIFY_RIGHT',
'STOCK_MEDIA_FORWARD',
'STOCK_MEDIA_NEXT',
'STOCK_MEDIA_PAUSE',
'STOCK_MEDIA_PLAY',
'STOCK_MEDIA_PREVIOUS',
'STOCK_MEDIA_RECORD',
'STOCK_MEDIA_REWIND',
'STOCK_MEDIA_STOP',
'STOCK_MISSING_IMAGE',
'STOCK_NETWORK',
'STOCK_NEW',
'STOCK_NO',
'STOCK_OK',
'STOCK_OPEN',
'STOCK_PASTE',
'STOCK_PREFERENCES',
'STOCK_PRINT',
'STOCK_PRINT_PREVIEW',
'STOCK_PROPERTIES',
'STOCK_QUIT',
'STOCK_REDO',
'STOCK_REFRESH',
'STOCK_REMOVE',
'STOCK_REVERT_TO_SAVED',
'STOCK_SAVE',
'STOCK_SAVE_AS',
'STOCK_SELECT_COLOR',
'STOCK_SELECT_FONT',
'STOCK_SORT_ASCENDING',
'STOCK_SORT_DESCENDING',
'STOCK_SPELL_CHECK',
'STOCK_STOP',
'STOCK_STRIKETHROUGH',
'STOCK_UNDELETE',
'STOCK_UNDERLINE',
'STOCK_UNDO',
'STOCK_UNINDENT',
'STOCK_YES',
'STOCK_ZOOM_100',
'STOCK_ZOOM_FIT',
'STOCK_ZOOM_IN',
'STOCK_ZOOM_OUT',
'terp-account',
'terp-crm',
'terp-mrp',
'terp-product',
'terp-purchase',
'terp-sale',
'terp-tools',
'terp-administration',
'terp-hr',
'terp-partner',
'terp-project',
'terp-report',
'terp-stock',
'terp-calendar',
'terp-graph',
'terp-check',
'terp-go-month',
'terp-go-year',
'terp-go-today',
'terp-document-new',
'terp-camera_test',
'terp-emblem-important',
'terp-gtk-media-pause',
'terp-gtk-stop',
'terp-gnome-cpu-frequency-applet+',
'terp-dialog-close',
'terp-gtk-jump-to-rtl',
'terp-gtk-jump-to-ltr',
'terp-accessories-archiver',
'terp-stock_align_left_24',
'terp-stock_effects-object-colorize',
'terp-go-home',
'terp-gtk-go-back-rtl',
'terp-gtk-go-back-ltr',
'terp-personal',
'terp-personal-',
'terp-personal+',
'terp-accessories-archiver-minus',
'terp-accessories-archiver+',
'terp-stock_symbol-selection',
'terp-call-start',
'terp-dolar',
'terp-face-plain',
'terp-folder-blue',
'terp-folder-green',
'terp-folder-orange',
'terp-folder-yellow',
'terp-gdu-smart-failing',
'terp-go-week',
'terp-gtk-select-all',
'terp-locked',
'terp-mail-forward',
'terp-mail-message-new',
'terp-mail-replied',
'terp-rating-rated',
'terp-stage',
'terp-stock_format-scientific',
'terp-dolar_ok!',
'terp-idea',
'terp-stock_format-default',
'terp-mail-',
'terp-mail_delete'
Avatar
Discard

http://bazaar.launchpad.net/~openerp/openerp-web/7.0/files/head:/addons/web/static/src/img/icons/

Best Answer

Go to the file openerp/server/bin/tools/misc.py and search the line number 1158. You can find all the icon supported by openERP.

Avatar
Discard
Author

Thanks, I also like to see icons with their codes. Where are they ?!

Best Answer

In version 7

server/openerp/tools/misc.py

line no 605

Avatar
Discard

He seeks version 6.0 information....;) Thanks for your answer. I think help other people...:)

Best Answer

In version 8 : \openerp\tools\misc.py line: 653

Avatar
Discard