From d51e0da926100149844d5f57ccd421c190329488 Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Wed, 18 Jul 2012 12:25:50 +0530 Subject: [PATCH] [IMP]: Improved warning message for mrp bzr revid: pso@tinyerp.com-20120718065550-0phn8tsxqouyopd0 --- addons/mrp_operations/i18n/mrp_operations.pot | 2 +- addons/mrp_operations/mrp_operations.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp_operations/i18n/mrp_operations.pot b/addons/mrp_operations/i18n/mrp_operations.pot index 574f6ba30ee..0cd82aaca0c 100644 --- a/addons/mrp_operations/i18n/mrp_operations.pot +++ b/addons/mrp_operations/i18n/mrp_operations.pot @@ -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 diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index 34220196f91..2700ed2654d 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -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':