From fc3019a8cc5e6a79a3e4cd112ff2db52ff4261e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 9 May 2014 14:31:21 +0200 Subject: [PATCH] Use Group.child_name instead of relation_field to skip on_change values relation_field is not reliable see issue3899 issue3819 review6281002 --- src/model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model.js b/src/model.js index 72c0f0b7ac..a1e3ec806e 100644 --- a/src/model.js +++ b/src/model.js @@ -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);