Revert "[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens"

This reverts commit 10971ad68e.
This commit is contained in:
Pedro M. Baeza
2019-10-14 15:01:59 +02:00
committed by Lois Rilo
parent 9aef7f1019
commit 8f1db7f5fa
5 changed files with 0 additions and 27 deletions

View File

@@ -1,23 +0,0 @@
/* Copyright 2019 Alexandre Díaz
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
odoo.define('web_widget_x2many_2d_matrix.X2Many2dMatrixView', function (require) {
"use strict";
var BasicView = require('web.BasicView');
BasicView.include({
init: function (viewInfo) {
// Force mode='list'
var $arch = $(viewInfo.arch);
var selector = "field[widget='x2many_2d_matrix']";
$arch.find(selector).each(function (i, e) {
$(e).attr('mode', 'list');
});
viewInfo.arch = $arch.prop('outerHTML');
this._super.apply(this, arguments);
},
});
});