优化警告问题

This commit is contained in:
mgw
2023-11-27 21:30:45 +08:00
parent 96df8f971c
commit 4f83c5f29a
19 changed files with 58 additions and 74 deletions

View File

@@ -1,7 +1,7 @@
/** @odoo-module */
import {patch} from '@web/core/utils/patch';
import {ListRenderer} from "@web/views/list/list_renderer"
import {ListRenderer} from "@web/views/list/list_renderer";
// var {patch} = require("web.utils") 这句话也行
@@ -17,7 +17,7 @@ patch(ListRenderer.prototype, 'jikimo_frontend.ListRenderer', {
const table = this.tableRef.el;
const headers = [...table.querySelectorAll("thead th:not(.o_list_actions_header)")];
const column_num = headers.length
const column_num = headers.length;
if (!this.columnWidths || !this.columnWidths.length) {
// no column widths to restore