Fix delete all records of one2many at once
This commit is contained in:
1 parent
4680069ff3
commit
1d4dd21f0d
1 file changed
+1
-1
@@ -348,7 +348,7 @@ class O2MField(CharField):
|
||||
record.parent.signal('record-changed')
|
||||
|
||||
def _set_default_value(self, record):
|
||||
if record.value.get(self.name):
|
||||
if record.value.get(self.name) is not None:
|
||||
return
|
||||
from group import Group
|
||||
group = Group(self.attrs['relation'], {}, record.window,
|
||||
|
||||
Reference in new issue
Block a user