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 = {}
|
context = {}
|
||||||
if not values:
|
if not values:
|
||||||
return
|
return
|
||||||
print obj, id, field, values
|
|
||||||
_table = obj.pool.get(self._obj)._table
|
_table = obj.pool.get(self._obj)._table
|
||||||
obj = obj.pool.get(self._obj)
|
obj = obj.pool.get(self._obj)
|
||||||
for act in values:
|
for act in values:
|
||||||
|
@ -634,7 +634,6 @@ class function(_column):
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def set(self, cr, obj, id, name, value, user=None, context=None):
|
def set(self, cr, obj, id, name, value, user=None, context=None):
|
||||||
print obj,name,value
|
|
||||||
if not context:
|
if not context:
|
||||||
context = {}
|
context = {}
|
||||||
if self._fnct_inv:
|
if self._fnct_inv:
|
||||||
|
@ -693,9 +692,11 @@ class related(function):
|
||||||
self._field_get2(cr, uid, obj, context)
|
self._field_get2(cr, uid, obj, context)
|
||||||
if not ids: return {}
|
if not ids: return {}
|
||||||
relation = obj._name
|
relation = obj._name
|
||||||
res = {}
|
res = {}.fromkeys(ids, False)
|
||||||
objlst = obj.browse(cr, uid, ids)
|
objlst = obj.browse(cr, uid, ids)
|
||||||
for data in objlst:
|
for data in objlst:
|
||||||
|
if not data:
|
||||||
|
continue
|
||||||
t_data = data
|
t_data = data
|
||||||
relation = obj._name
|
relation = obj._name
|
||||||
for i in range(len(self.arg)):
|
for i in range(len(self.arg)):
|
||||||
|
|
Loading…
Reference in New Issue