3
0
Fork 0

[FIX] web_widget_x2many_2d_matrix: Wrong widget

In previous versions _setSubViewLimit was defined at AbstractView widget but in v12 is defined at FormView widget
12.0
Pablo Fuentes 2019-11-22 18:06:19 +01:00
parent ccc7feea42
commit 9778b0d4a6
1 changed files with 13 additions and 14 deletions

View File

@ -1,9 +1,9 @@
odoo.define( "web_widget_x2many_2d_matrix.matrix_limit_extend", function (require) {
"use strict";
var AbstractView = require("web.AbstractView");
var FormView = require("web.FormView");
AbstractView.include({
FormView.include({
// We extend this method so that the view is not limited to
// just 40 cells when the 'x2many_2d_matrix' widget is used.
_setSubViewLimit: function (attrs) {
@ -13,5 +13,4 @@ odoo.define( "web_widget_x2many_2d_matrix.matrix_limit_extend", function (requir
}
},
});
}
);
});