[FIX] importation of time lib was missing for eval()

bzr revid: jvo@tinyerp.com-20100512103229-lusl8l48x3fwuzf2
This commit is contained in:
Jay (Open ERP) 2010-05-12 16:02:29 +05:30
parent a6d5a61714
commit 4f5be5aa54
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ def _eval_xml(self,node, pool, cr, uid, idref, context=None):
return f_val
a_eval = node.get('eval','')
if a_eval:
import time
idref2 = idref.copy()
idref2['time'] = time
idref2['DateTime'] = datetime