Skip to content

Commit

Permalink
Merge PR #1448 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 25, 2019
2 parents ccc7fee + 9778b0d commit aeb08cb
Showing 1 changed file with 13 additions and 14 deletions.
@@ -1,17 +1,16 @@
odoo.define( "web_widget_x2many_2d_matrix.matrix_limit_extend", function (require) {
"use strict";
"use strict";

var AbstractView = require("web.AbstractView");
var FormView = require("web.FormView");

AbstractView.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) {
this._super(attrs);
if (attrs.widget === "x2many_2d_matrix") {
attrs.limit = Infinity;
}
},
});
}
);
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) {
this._super(attrs);
if (attrs.widget === "x2many_2d_matrix") {
attrs.limit = Infinity;
}
},
});
});

0 comments on commit aeb08cb

Please sign in to comment.