bugfixed the Store_set problem on unlink: Ref Fabien Pinckaers
bzr revid: jvo@tinyerp.com-20081217054427-d05z1t1970jc5hkw
This commit is contained in:
parent
f677df6884
commit
dbd8f1478e
|
@ -426,7 +426,7 @@ class one2many(_column):
|
|||
context = {}
|
||||
if not values:
|
||||
return
|
||||
print obj, id, field, values
|
||||
|
||||
_table = obj.pool.get(self._obj)._table
|
||||
obj = obj.pool.get(self._obj)
|
||||
for act in values:
|
||||
|
@ -634,7 +634,6 @@ class function(_column):
|
|||
return res
|
||||
|
||||
def set(self, cr, obj, id, name, value, user=None, context=None):
|
||||
print obj,name,value
|
||||
if not context:
|
||||
context = {}
|
||||
if self._fnct_inv:
|
||||
|
@ -693,9 +692,11 @@ class related(function):
|
|||
self._field_get2(cr, uid, obj, context)
|
||||
if not ids: return {}
|
||||
relation = obj._name
|
||||
res = {}
|
||||
res = {}.fromkeys(ids, False)
|
||||
objlst = obj.browse(cr, uid, ids)
|
||||
for data in objlst:
|
||||
if not data:
|
||||
continue
|
||||
t_data = data
|
||||
relation = obj._name
|
||||
for i in range(len(self.arg)):
|
||||
|
|
Loading…
Reference in New Issue