mirror of https://github.com/OCA/web.git
[FIX] Error opening product form in shop floor
parent
6e7e9d2ef8
commit
75d658713b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue