Use material design icons
issue474 review60291002
This commit is contained in:
1 parent
eaa77ae4cc
commit
65d3cf4589
6 files changed
+22
-14
No files matched your search
@@ -248,7 +248,7 @@ class OpenBOMTree(Wizard):
|
||||
])
|
||||
tree = StateView('production.bom.tree.open.tree',
|
||||
'production.bom_tree_open_tree_view_form', [
|
||||
Button('Change', 'start', 'tryton-go-previous'),
|
||||
Button('Change', 'start', 'tryton-back'),
|
||||
Button('Close', 'end', 'tryton-close'),
|
||||
])
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<path clip-rule="evenodd" fill="none" d="M0 0h24v24H0z"/>
|
||||
<path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 338 B |
+5
-5
@@ -185,8 +185,8 @@ class Production(Workflow, ModelSQL, ModelView):
|
||||
'icon': If(Eval('state') == 'cancel',
|
||||
'tryton-clear',
|
||||
If(Eval('state') == 'request',
|
||||
'tryton-go-next',
|
||||
'tryton-go-previous')),
|
||||
'tryton-forward',
|
||||
'tryton-back')),
|
||||
'depends': ['state'],
|
||||
},
|
||||
'reset_bom': {
|
||||
@@ -198,10 +198,10 @@ class Production(Workflow, ModelSQL, ModelView):
|
||||
'invisible': ~Eval('state').in_(['draft', 'assigned',
|
||||
'waiting', 'running']),
|
||||
'icon': If(Eval('state').in_(['assigned', 'running']),
|
||||
'tryton-go-previous',
|
||||
'tryton-back',
|
||||
If(Eval('state') == 'waiting',
|
||||
'tryton-clear',
|
||||
'tryton-go-next')),
|
||||
'tryton-forward')),
|
||||
'depends': ['state'],
|
||||
},
|
||||
'run': {
|
||||
@@ -651,7 +651,7 @@ class Assign(Wizard):
|
||||
start = StateTransition()
|
||||
failed = StateView('production.assign.failed',
|
||||
'production.assign_failed_view_form', [
|
||||
Button('Force Assign', 'force', 'tryton-go-next',
|
||||
Button('Force Assign', 'force', 'tryton-forward',
|
||||
states={
|
||||
'invisible': ~Id('stock',
|
||||
'group_stock_force_assignment').in_(
|
||||
|
||||
+7
-4
@@ -31,16 +31,19 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="group" ref="group_production"/>
|
||||
</record>
|
||||
|
||||
<menuitem name="Production" id="menu_production" sequence="10"/>
|
||||
<record model="ir.ui.icon" id="production_icon">
|
||||
<field name="name">tryton-production</field>
|
||||
<field name="path">icons/tryton-production.svg</field>
|
||||
</record>
|
||||
|
||||
<menuitem name="Production" id="menu_production" sequence="10" icon="tryton-production"/>
|
||||
<record model="ir.ui.menu-res.group"
|
||||
id="menu_production_group_production">
|
||||
<field name="menu" ref="menu_production"/>
|
||||
<field name="group" ref="group_production"/>
|
||||
</record>
|
||||
|
||||
<menuitem name="Configuration" parent="menu_production"
|
||||
id="menu_configuration"
|
||||
sequence="0" icon="tryton-preferences"/>
|
||||
<menuitem name="Configuration" parent="menu_production" id="menu_configuration" sequence="0" icon="tryton-settings"/>
|
||||
<record model="ir.ui.menu-res.group"
|
||||
id="menu_configuration_group_production_admin">
|
||||
<field name="menu" ref="menu_configuration"/>
|
||||
|
||||
@@ -72,7 +72,8 @@ setup(name=name,
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.production': (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',
|
||||
|
||||
@@ -47,9 +47,9 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<button name="draft"/>
|
||||
<button name="reset_bom" icon="tryton-clear"/>
|
||||
<button name="wait"/>
|
||||
<button name="assign_wizard" icon="tryton-go-next"/>
|
||||
<button name="run" icon="tryton-go-next"/>
|
||||
<button name="done" icon="tryton-go-next"/>
|
||||
<button name="assign_wizard" icon="tryton-forward"/>
|
||||
<button name="run" icon="tryton-forward"/>
|
||||
<button name="done" icon="tryton-forward"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
Reference in new issue
Block a user