diff --git a/jikimo_frontend/static/src/scss/custom_style.scss b/jikimo_frontend/static/src/scss/custom_style.scss index c668d82e..6ffb824d 100644 --- a/jikimo_frontend/static/src/scss/custom_style.scss +++ b/jikimo_frontend/static/src/scss/custom_style.scss @@ -521,11 +521,6 @@ div:has(.o_required_modifier) > label::before { } } -// 设置表格横向滚动 -.o_list_renderer.o_renderer { - max-width: 100%; - overflow-x: auto; -} // 设置表单页面label文本不换行 .o_form_view .o_group .o_wrap_label .o_form_label { diff --git a/sf_demand_plan/static/src/js/print_demand.js b/sf_demand_plan/static/src/js/print_demand.js index 6dacc7b3..5df0d02f 100644 --- a/sf_demand_plan/static/src/js/print_demand.js +++ b/sf_demand_plan/static/src/js/print_demand.js @@ -13,6 +13,7 @@ odoo.define('sf_demand.print_demand', function (require) { this.getParent()?.$buttons.hide(); return this._super.apply(this, arguments).then(function () { + if(!self.state.data || !self.state.data.length) return // 添加图片预览容器到页面左侧 if (!$('.table-image-preview-container').length) { self.$el.parent().addClass('custom-table-image-container') @@ -22,29 +23,45 @@ odoo.define('sf_demand.print_demand', function (require) {