[FIX]:problem with create_date in base synchro

lp bug: https://launchpad.net/bugs/725073 fixed

bzr revid: ksa@tinyerp.co.in-20110322085152-xmq5lgh93351l7xh
This commit is contained in:
ksa (Open ERP) 2011-03-22 14:21:52 +05:30
parent 8c5349a683
commit 7be91c1008
1 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,11 @@ class base_synchro(osv.osv_memory):
if object.model_id.model=='crm.case.history':
fields = ['email','description','log_id']
value = pool_src.get(object.model_id.model).read(cr, uid, [id], fields)[0]
if 'create_date' in value:
del value['create_date']
for key ,val in value.iteritems():
if type(val)==tuple:
value.update({key:val[0]})
value = self.data_transform(cr, uid, pool_src, pool_dest, object.model_id.model, value, action, context=context)
id2 = self.get_id(cr, uid, object.id, id, action, context)
#