diff options
| author | Aaron Bohy <aab@odoo.com> | 2019-08-16 11:02:49 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-08-23 06:28:35 +0000 |
| commit | 1824020cc274f3ef6e86fec5248d49ffde86e480 (patch) | |
| tree | cdf0b6784518f35cef9246a5fe78d804128bb001 /addons/web/static/src/js/fields | |
| parent | 4393b012a5417e0964ef11a3ac81496cacd3b812 (diff) | |
[IMP] web: list: keep columns width when adding records
Mainly, when adding the first record to the list, as this is when
we switch from forcing the column's widths (when there is no data),
to letting the browser optimally divide the available space.
Some other cases had to be handled, like the multi edition.
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/relational_fields.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index eefb771c69a..c539a3ce12d 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -1071,6 +1071,7 @@ var FieldX2Many = AbstractField.extend({ this.currentColInvisibleFields = this._evalColumnInvisibleFields(); return this.renderer.updateState(this.value, { columnInvisibleFields: this.currentColInvisibleFields, + keepWidths: true, }).then(function () { self.pager.updateState({ size: self.value.count }); }); |
