This patch (and the next one) allows you to define icons on the server side.

I create a new table 'ir.ui.icon' with the fields name, module, path and icons (module is precomputed just like in the view in xml patch). The image file must be a svg file (but this constraint is not enforced so it might work with other mimetypes).

Icons can be defined on:
* actions using the many2one field action. All display of this action in the client will use this icon. * notebook page. In the xml tag defining the page, you use the attribute 'icon' setting its value to the name of the icon to use * menuitem. Just like before the icon attribute defines the icon to display

I think we should discuss removing unused icons from the client so that modules specific icons resides only on the server. For now I did not removed any images from the client. The icon will be overrided by the one on the server if names collide.

Please review this at http://codereview.appspot.com/4080053/

Affected files:
   M tryton/action/main.py
   M tryton/common/common.py
   M tryton/gui/main.py
   M tryton/gui/window/tree.py
   M tryton/gui/window/view_board/parser.py
   M tryton/gui/window/view_form/view/form.py
   M tryton/gui/window/view_form/view/form_gtk/parser.py
   M tryton/gui/window/view_form/view/list.py
   M tryton/gui/window/view_tree/view_tree.py
   M tryton/gui/window/window.py
   M tryton/gui/window/wizard.py
   M tryton/wizard/main.py


--
[email protected] mailing list

Reply via email to