Merge PR #2924 into 17.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-09-16 10:33:20 +00:00

View File

@@ -365,7 +365,7 @@ patch(FormController.prototype, {
viewType = isSmall ? "kanban" : "list";
}
field.viewMode = viewType;
if (field.views[viewType] && limit) {
if (field.views && field.views[viewType] && limit) {
field.views[viewType].limit = limit;
}
}