From 0639a99a9a6527300bee6c867ca0f2d18f3a3855 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 13 Feb 2023 13:24:51 +0000 Subject: [PATCH] [FIX] web: fix typo in X2ManyField props definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the "addLabel" and "editable" props type was not really tested. closes odoo/odoo#112583 X-original-commit: bb060d012ff9dfe07fa75c851feafc0af2bfc0b5 Signed-off-by: Georis François (fge) Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/views/fields/x2many/x2many_field.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/views/fields/x2many/x2many_field.js b/addons/web/static/src/views/fields/x2many/x2many_field.js index 99a4e794896..ae4a0d07f95 100644 --- a/addons/web/static/src/views/fields/x2many/x2many_field.js +++ b/addons/web/static/src/views/fields/x2many/x2many_field.js @@ -247,8 +247,8 @@ export class X2ManyField extends Component { X2ManyField.components = { Pager, KanbanRenderer, ListRenderer, ViewButton }; X2ManyField.props = { ...standardFieldProps, - addLabel: { type: "string", optional: true }, - editable: { type: "string", optional: true }, + addLabel: { type: String, optional: true }, + editable: { type: String, optional: true }, }; X2ManyField.supportedTypes = ["one2many", "many2many"]; X2ManyField.displayName = _lt("Relational table");