Propagate "group-" signal only if parent is the same model
issue2081
This commit is contained in:
1 parent
4995dd0ba1
commit
bc962405ab
1 file changed
+4
-2
@@ -431,10 +431,12 @@ class O2MField(CharField):
|
||||
record.parent.signal('record-changed')
|
||||
|
||||
def _group_list_changed(self, group, signal):
|
||||
group.parent.group.signal('group-list-changed', signal)
|
||||
if group.model_name == group.parent.model_name:
|
||||
group.parent.group.signal('group-list-changed', signal)
|
||||
|
||||
def _group_cleared(self, group, signal):
|
||||
group.parent.signal('group-cleared')
|
||||
if group.model_name == group.parent.model_name:
|
||||
group.parent.signal('group-cleared')
|
||||
|
||||
def _set_default_value(self, record):
|
||||
if record.value.get(self.name) is not None:
|
||||
|
||||
Reference in new issue
Block a user