Use a tuple model, dictionary for Reference field

issue3902
review9341003
This commit is contained in:
Cédric Krier
2014-05-10 20:31:27 +02:00
parent fc3019a8cc
commit 42b03ca0ff
+3 -2
View File
@@ -1881,8 +1881,9 @@
get_on_change_value: function(record) {
if ((record.group.parent_name == this.name) &&
record.group.parent) {
return record.group.parent.get_on_change_value(
[record.group.child_name]);
return [record.group.parent.model_name,
record.group.parent.get_on_change_value(
[record.group.child_name])];
}
return Sao.field.Reference._super.get_on_change_value.call(
this, record);