Don't stop setting Many2Many if first values is empty
This commit is contained in:
1 parent
84cc132dcc
commit
c08724f2ef
1 file changed
-2
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user