Button can be enable on readonly record and group

issue5010
review27391002
This commit is contained in:
Cédric Krier committed 2016-06-30 21:52:35 +02:00
1 parent 1acc508800
commit 659565265d
1 file changed
-3
-3
View File
@@ -744,9 +744,6 @@
var states;
if (record) {
states = record.expr_eval(this.attributes.states || {});
if (record.group.get_readonly() || record.readonly()) {
states.readonly = true;
}
} else {
states = {};
}