[IMP] Made button icons consistent in stock wizards: gtk-cancel on cancel and gtk-apply for action confirmation

bzr revid: odo@openerp.com-20100224184621-1iunc8wocwgnjari
This commit is contained in:
Olivier Dony
2010-02-24 19:46:21 +01:00
parent 6a575627ae
commit a79aa3bd28
11 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -82,8 +82,8 @@ class merge_inventory(wizard.interface):
'result' : {'type' : 'form',
'arch' : _form,
'fields' : {},
'state' : [('end', 'Cancel'),
('merge', 'Yes') ]}
'state' : [('end', 'Cancel', 'gtk-cancel'),
('merge', 'Yes', 'gtk-apply', True) ]}
},
'merge' : {
'actions' : [],
+2 -2
View File
@@ -78,8 +78,8 @@ class merge_inventory(wizard.interface):
'result' : {'type' : 'form',
'arch' : _form,
'fields' : _inventory_fields,
'state' : [('end', 'Cancel'),
('merge', 'Set to Zero') ]}
'state' : [('end', 'Cancel', 'gtk-cancel'),
('merge', 'Set to Zero', 'gtk-apply', True) ]}
},
'merge' : {
'actions' : [],
+1 -1
View File
@@ -97,7 +97,7 @@ class fill_inventory(wizard.interface):
'result' : {'type' : 'form',
'arch' : inventory_form,
'fields' : inventory_fields,
'state' : [('end', 'Cancel'),('fill_inventory', 'Fill Inventory') ]}
'state' : [('end', 'Cancel', 'gtk-cancel'),('fill_inventory', 'Fill Inventory', 'gtk-apply', True) ]}
},
'fill_inventory' : {
'actions' : [],
@@ -145,8 +145,8 @@ class make_invoice_onshipping(wizard.interface):
'arch': invoice_form,
'fields': invoice_fields,
'state': [
('end', 'Cancel'),
('create_invoice', 'Create invoice')
('end', 'Cancel', 'gtk-cancel'),
('create_invoice', 'Create invoice', 'gtk-apply', True)
]
}
},
@@ -65,7 +65,7 @@ class product_by_location(wizard.interface):
states = {
'init': {
'actions': [],
'result': {'type': 'form', 'arch':form1, 'fields':form1_fields, 'state': [('end', 'Cancel','gtk-cancel'),('open', 'Open Products','gtk-ok')]}
'result': {'type': 'form', 'arch':form1, 'fields':form1_fields, 'state': [('end', 'Cancel', 'gtk-cancel'),('open', 'Open Products', 'gtk-apply', True)]}
},
'open': {
'actions': [],
+2 -2
View File
@@ -193,8 +193,8 @@ class partial_move(wizard.interface):
'actions': [ _get_moves ],
'result': {'type': 'form', 'arch': _moves_arch, 'fields': _moves_fields,
'state' : (
('end', 'Cancel'),
('split', 'Partial')
('end', 'Cancel', 'gtk-cancel'),
('split', 'Partial', 'gtk-apply', True)
)
},
},
@@ -224,8 +224,8 @@ class partial_picking(wizard.interface):
'actions': [ _get_moves ],
'result': {'type': 'form', 'arch': _moves_arch, 'fields': _moves_fields,
'state' : (
('end', 'Cancel'),
('split', 'Make Picking')
('end', 'Cancel', 'gtk-cancel'),
('split', 'Make Picking', 'gtk-apply', True)
)
},
},
+1 -1
View File
@@ -71,7 +71,7 @@ class stock_picking_make(wizard.interface):
'fields': FIELDS,
'state': [
('end', 'Cancel', 'gtk-cancel'),
('make', 'Ok', 'gtk-ok', True)
('make', 'Ok', 'gtk-apply', True)
],
},
},
+1 -1
View File
@@ -143,7 +143,7 @@ class wizard_return_picking(wizard.interface):
states={
'init':{
'actions':[_get_returns],
'result':{'type':'form', 'arch':arch, 'fields':fields, 'state':[('end','Cancel'),('return','Return')]}
'result':{'type':'form', 'arch':arch, 'fields':fields, 'state':[('end','Cancel','gtk-cancel'),('return','Return','gtk-apply',True)]}
},
'return':{
'actions':[],
@@ -87,7 +87,7 @@ class wizard_split_inventory_lots(wizard.interface):
states = {
'init': {
'actions': [_check_production_lot],
'result': {'type': 'form', 'arch': inv_form, 'fields': inv_fields, 'state': [('end', 'Cancel', 'gtk-cancel'), ('split', 'Ok', 'gtk-ok')]},
'result': {'type': 'form', 'arch': inv_form, 'fields': inv_fields, 'state': [('end', 'Cancel', 'gtk-cancel'), ('split', 'Ok', 'gtk-apply', True)]},
},
'split': {
'actions': [_split_lines],
+1 -1
View File
@@ -66,7 +66,7 @@ class wizard_split_move(wizard.interface):
states = {
'init': {
'actions': [_get_moves],
'result': {'type':'form', 'arch':arch, 'fields':fields, 'state':[('end','Cancel'),('split','Split')]}
'result': {'type':'form', 'arch':arch, 'fields':fields, 'state':[('end','Cancel','gtk-cancel'),('split','Split','gtk-apply',True)]}
},
'split': {
'actions': [_split_lines],