On 10.06.2015 12:01, [email protected] wrote:
> Hello together,
>
> is it posible to add a individual menu logo to my own created module?
> I tryed to define it in the test_module.xml <menuitem name="test"
> id="menu_test" sequence="10" icon="tryton-individual"/> and put the
> svg file in trytond\ir\ui\Icons but this didnt work.
>
> if i try to installl the module following message was shown:'The value
> "tryton-individual" for the field "icon" is not in the selection')
Hi,
you can put your icon in an 'icons' folder in your custom module.
And this is how you can add your icon to the menu item:
<record model="ir.ui.icon" id="individual_icon">
<field name="name">tryton-individual</field>
<field name="path">icons/tryton-individual.svg</field>
</record>
<menuitem name="Custom menu item" id="menu_custom"
icon="tryton-individual"/>