[FIX] Fixed problem of unlink tuple (5) in many2many
lp bug: https://launchpad.net/bugs/818189 fixed bzr revid: gpa@tinyerp.com-20110817093542-bi6ges077dc7un3e
This commit is contained in:
parent
0676727e6e
commit
5966666250
|
@ -665,7 +665,7 @@ class many2many(_column):
|
|||
if not cr.fetchone():
|
||||
cr.execute('insert into '+self._rel+' ('+self._id1+','+self._id2+') values (%s,%s)', (id, act[1]))
|
||||
elif act[0] == 5:
|
||||
cr.execute('update '+self._rel+' set '+self._id2+'=null where '+self._id2+'=%s', (id,))
|
||||
cr.execute('delete from '+self._rel+' where ' + self._id1 + ' = %s', (id,))
|
||||
elif act[0] == 6:
|
||||
|
||||
d1, d2,tables = obj.pool.get('ir.rule').domain_get(cr, user, obj._name, context=context)
|
||||
|
|
Loading…
Reference in New Issue