[FIX] web: fix typo in X2ManyField props definition

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) <fge@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Aaron Bohy
2023-02-14 09:00:56 +01:00
parent a105af636f
commit 0639a99a9a
@@ -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");