Use Group.child_name instead of relation_field to skip on_change values

relation_field is not reliable see issue3899

issue3819
review6281002
This commit is contained in:
Cédric Krier committed 2014-05-09 14:31:21 +02:00
1 parent 723808441a
commit fc3019a8cc
1 file changed
+2 -2
+2 -2
View File
@@ -1428,7 +1428,7 @@
if ((record.group.parent_name == this.name) &&
record.group.parent) {
return record.group.parent.get_on_change_value(
[this.description.relation_field]);
[record.group.child_name]);
}
return Sao.field.Many2One._super.get_on_change_value.call(
this, record);
@@ -1882,7 +1882,7 @@
if ((record.group.parent_name == this.name) &&
record.group.parent) {
return record.group.parent.get_on_change_value(
[this.description.relation_field]);
[record.group.child_name]);
}
return Sao.field.Reference._super.get_on_change_value.call(
this, record);