Use material design icons

issue474
review60291002
This commit is contained in:
Cédric Krier
2018-08-19 20:02:58 +02:00
parent a607b41092
commit f2e1bc2de6
3 changed files with 12 additions and 3 deletions
+6 -2
View File
@@ -31,9 +31,13 @@ this repository contains the full copyright notices and license terms. -->
<field name="group" ref="group_commission"/>
</record>
<record model="ir.ui.icon" id="commission_icon">
<field name="name">tryton-commission</field>
<field name="path">icons/tryton-commission.svg</field>
</record>
<menuitem name="Commission" sequence="5" id="menu_commission"/>
<menuitem name="Configuration" parent="menu_commission"
id="menu_configuration" sequence="10" icon="tryton-preferences"/>
<menuitem name="Configuration" parent="menu_commission" id="menu_configuration" sequence="10" icon="tryton-settings"/>
<record model="ir.ui.menu-res.group"
id="menu_configuration_group_commission_admin">
<field name="menu" ref="menu_configuration"/>
+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>

After

Width:  |  Height:  |  Size: 586 B

+2 -1
View File
@@ -72,7 +72,8 @@ setup(name=name,
],
package_data={
'trytond.modules.commission': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst']),
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst',
'icons/*.svg']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',