issue8390 Different readonly computation for editable tree

This commit is contained in:
?ngel ?lvarez 2019-06-04 12:14:53 +02:00
parent 46edb19083
commit ce17480992
2 changed files with 19 additions and 0 deletions

18
issue8390.diff Normal file
View File

@ -0,0 +1,18 @@
diff -r f3543e407388 src/view/tree.js
--- a/public_data/sao/src/view/tree.js Tue Jun 04 12:10:26 2019 +0200
+++ b/public_data/sao/src/view/tree.js Tue Jun 04 12:12:04 2019 +0200
@@ -1585,7 +1585,13 @@
continue;
}
var state_attrs = col.field.get_state_attrs(this.record);
- var readonly = col.attributes.readonly || state_attrs.readonly;
+ var readonly = col.attributes.readonly;
+ if (readonly === undefined) {
+ readonly = state_attrs.readonly;
+ if (readonly === undefined) {
+ readonly = false;
+ }
+ }
var EditableBuilder = Sao.View.EditableTree.WIDGETS[
col.attributes.widget];

1
series
View File

@ -29,3 +29,4 @@ party_identifier_migration.diff # [Party] avoid errors on upgrades
# Sao
issue8240.diff # Add drag and drop support to sao
issue8390.diff # Different readonly computation for editable tree