From 2a47c0911c18d96b8faff4e435984d6739d07086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 14 Sep 2022 19:18:46 +0200 Subject: [PATCH] Limit size of One2Many screen without create access issue11694 review429321003 --- src/view/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/form.js b/src/view/form.js index b2ea0b9c6b..a9fbeace52 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -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 {