Limit size of One2Many screen without create access

issue11694
review429321003
This commit is contained in:
Cédric Krier committed 2022-09-14 19:18:46 +02:00
1 parent 051793812c
commit 2a47c0911c
1 file changed
+1 -1
+1 -1
View File
@@ -3360,7 +3360,7 @@ function eval_pyson(value){
domain = field.get_domain(record);
size_limit = record.expr_eval(this.attributes.size);
}
if (this._readonly) {
if (this._readonly || !this.create_access) {
if (size_limit === null) {
size_limit = this.screen.group.length;
} else {