From 4686b2f5a7e0f3e03fa55a6a62e7917b607b4f8f Mon Sep 17 00:00:00 2001 From: "Anup(OpenERP)" <> Date: Wed, 14 Apr 2010 16:27:24 +0530 Subject: [PATCH] [FIX] Fields.property :Support for date,float,int,etc. corrected for property field lp bug: https://launchpad.net/bugs/562356 fixed bzr revid: jvo@tinyerp.com-20100414105724-4zwxeor67d27e4um --- bin/osv/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/fields.py b/bin/osv/fields.py index 980b3ad67c6..283d1c958b1 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -931,7 +931,7 @@ class property(function): res[int(prop.res_id.id)] = (prop.value and \ int(prop.value.split(',')[1])) or False else: - res[int(prop.res_id.split(',')[1])] = prop.value or '' + res[int(prop.res_id.id)] = prop.value or '' if self._obj: obj = obj.pool.get(self._obj)