From 84f49e0bb3bda69f2043ced2a3c0bf1a396f58a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Wed, 13 May 2026 17:33:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/src/scss/property_scss.scss | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/yuthon_property/static/src/scss/property_scss.scss b/yuthon_property/static/src/scss/property_scss.scss index 864cb4082..c65e9be32 100644 --- a/yuthon_property/static/src/scss/property_scss.scss +++ b/yuthon_property/static/src/scss/property_scss.scss @@ -1,4 +1,3 @@ - .list_ids_width{ width: 80px !important; max-width: 80px !important; @@ -7,4 +6,45 @@ .list_name_width{ width: 300px !important; max-width: 300px !important; +} + +.o_m2o_mutil_line { + white-space: normal !important; + word-break: break-all !important; + word-wrap: break-word !important; +} + +/* 覆盖 many2one 下拉选项 */ +.o-autocomplete .dropdown-item { + white-space: normal !important; + word-break: break-all !important; + word-wrap: break-word !important; +} + +/* 覆盖 select2 下拉选项 */ +.select2-container--odoo .select2-results__option { + white-space: normal !important; + word-break: break-all !important; + word-wrap: break-word !important; +} + +/* 覆盖选择器弹窗中的表格单元格 */ +.modal-dialog .o_list_view .o_list_table td { + white-space: normal !important; + word-break: break-all !important; + word-wrap: break-word !important; +} + +/* 覆盖搜索更多弹窗中的表格 */ +.o_field_many2one .modal-body .o_list_view td { + white-space: normal !important; + word-break: break-all !important; + word-wrap: break-word !important; +} + +/* 覆盖通用的列表视图单元格 */ +.o_list_view .o_list_table td { + white-space: normal !important; + word-break: break-all !important; + word-wrap: break-word !important; } \ No newline at end of file