Skip to content

Commit 366da4e

Browse files
committed
Merge PR OCA#2635 into 16.0
Signed-off-by luisg123v
2 parents bbff8fb + 736c0a3 commit 366da4e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

web_remember_tree_column_width/static/src/js/list_renderer.esm.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ patch(ListRenderer.prototype, "web_remember_tree_column_width.ListRenderer", {
1111
computeColumnWidthsFromContent() {
1212
const columnWidths = this._super.apply(this, arguments);
1313
const table = this.tableRef.el;
14-
const thElements = [...table.querySelectorAll("thead th:not(.o_list_button)")];
14+
const thElements = [...table.querySelectorAll("thead th")];
1515
thElements.forEach((el, elIndex) => {
1616
const fieldName = $(el).data("name");
17-
if (this.props.list.resModel && fieldName && browser.localStorage) {
17+
if (
18+
!el.classList.contains("o_list_button") &&
19+
this.props.list.resModel &&
20+
fieldName &&
21+
browser.localStorage
22+
) {
1823
const storedWidth = browser.localStorage.getItem(
1924
`odoo.columnWidth.${this.props.list.resModel}.${fieldName}`
2025
);

0 commit comments

Comments
 (0)