Use a tuple model, dictionary for Reference field
issue3902 review9331002
This commit is contained in:
1 parent
2c0a604592
commit
8d89cfec11
1 file changed
+1
-1
@@ -815,7 +815,7 @@ class ReferenceField(Field):
|
||||
|
||||
def get_on_change_value(self, record):
|
||||
if record.parent_name == self.name and record.parent:
|
||||
return record.parent.get_on_change_value(
|
||||
return record.parent.model_name, record.parent.get_on_change_value(
|
||||
skip={record.group.child_name})
|
||||
return super(ReferenceField, self).get_on_change_value(record)
|
||||
|
||||
|
||||
Reference in new issue
Block a user