[IMP]: Improved warning message for mrp

bzr revid: pso@tinyerp.com-20120718065550-0phn8tsxqouyopd0
This commit is contained in:
pso (OpenERP)
2012-07-18 12:25:50 +05:30
parent aac01267c4
commit d51e0da926
2 changed files with 2 additions and 2 deletions
@@ -444,7 +444,7 @@ msgstr ""
#. module: mrp_operations
#: code:addons/mrp_operations/mrp_operations.py:466
#, python-format
msgid "Operation has already started !' 'You can either Pause/Finish/Cancel the operation.'))"
msgid "Operation has already started! You can either Pause/Finish/Cancel the operation.'))"
msgstr ""
#. module: mrp_operations
+1 -1
View File
@@ -513,7 +513,7 @@ class mrp_operations_operation(osv.osv):
code_lst.append(oper.code_id.start_stop)
if code.start_stop=='start':
if 'start' in code_lst:
raise osv.except_osv(_('Sorry!'),_('Operation has already started !' 'You can either Pause/Finish/Cancel the operation.'))
raise osv.except_osv(_('Sorry!'),_('Operation has already started! You can either Pause/Finish/Cancel the operation.'))
return False
if code.start_stop=='pause':
if code_lst[len(code_lst)-1]!='resume' and code_lst[len(code_lst)-1]!='start':