Call set method in set_default

The default value format may not be the internal format for _values like a
string for Reference field instead of a list.

issue7514
review42241002
This commit is contained in:
Cédric Krier committed 2018-06-18 21:48:05 +02:00
1 parent b26ff4dd86
commit 445d340425
1 file changed
+1 -1
+1 -1
View File
@@ -1407,7 +1407,7 @@
return this.get(record);
},
set_default: function(record, value) {
record._values[this.name] = value;
this.set(record, value);
record._changed[this.name] = true;
},
set_on_change: function(record, value) {