mirror of https://github.com/OCA/web.git
[FIX] web_m2x_options: Error if not web_m2x_options set on session
parent
1c6d9cd008
commit
c3acb6e641
|
@ -325,7 +325,7 @@ patch(FormController.prototype, {
|
||||||
* add more method to add subview limit on formview
|
* add more method to add subview limit on formview
|
||||||
*/
|
*/
|
||||||
async _setSubViewLimit() {
|
async _setSubViewLimit() {
|
||||||
const ir_options = session.web_m2x_options;
|
const ir_options = session.web_m2x_options || {};
|
||||||
const activeFields = this.archInfo.fieldNodes,
|
const activeFields = this.archInfo.fieldNodes,
|
||||||
isSmall = this.user;
|
isSmall = this.user;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue