[IMP] orm.orm: cleaned up comments after previous patches

bzr revid: odo@openerp.com-20101124184108-iw1up4jomysfoh85
This commit is contained in:
Olivier Dony
2010-11-24 19:41:08 +01:00
parent 0fa9b15868
commit 30cb4b8891
-2
View File
@@ -1058,8 +1058,6 @@ class orm_template(object):
# callable() because it will be deprecated as of Python 3.0
if hasattr(msg, '__call__'):
tmp_msg = msg(self, cr, uid, ids, context=context)
# Why translate something that has been generated dynamically?
# tmp_msg = trans._get_source(cr, uid, self._name, 'constraint', lng, source=txt_msg) or txt_msg
if isinstance(tmp_msg, tuple):
tmp_msg, params = tmp_msg
translated_msg = tmp_msg % params