Fix One2Many remove -> unlink
This commit is contained in:
1 parent
ab63bda495
commit
11a8f2942e
1 file changed
+1
-1
@@ -381,7 +381,7 @@ class O2MField(CharField):
|
||||
result.append(('create',
|
||||
model2.get(check_load=check_load, get_readonly=readonly)))
|
||||
if model.value[self.name].model_removed:
|
||||
result.append(('remove', model.value[self.name].model_removed))
|
||||
result.append(('unlink', model.value[self.name].model_removed))
|
||||
if model.value[self.name].model_deleted:
|
||||
result.append(('delete', model.value[self.name].model_deleted))
|
||||
return result
|
||||
|
||||
Reference in new issue
Block a user