Don't stop setting Many2Many if first values is empty

This commit is contained in:
Cédric Krier committed 2014-04-11 15:41:55 +02:00
1 parent 84cc132dcc
commit c08724f2ef
1 file changed
-2
-2
View File
@@ -108,8 +108,6 @@ class Many2Many(Field):
(``copy``, ``<ids>``, ``[{<field name>: value}, ...]``)
'''
pool = Pool()
if not values:
return
Relation = pool.get(self.relation_name)
Target = self.get_target()
origin_field = Relation._fields[self.origin]