This commit is contained in:
李鹏宇
2025-04-27 10:20:00 +08:00
parent 4b3a0e0645
commit ddb29637bd
3 changed files with 14 additions and 9 deletions
+3 -7
View File
@@ -1,11 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<rng:grammar xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/annotation/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<!-- Handling of element overloading when inheriting from a base
template
-->
<rng:include href="common.rng"/>
<rng:grammar xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/annotation/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<!-- Handling of element overloading when inheriting from a base template -->
<rng:include href="odoo/addons/base/rng/common.rng"/>
<rng:define name="groupby">
<rng:element name="groupby">
@@ -0,0 +1,9 @@
.o_list_view {
.o_list_table {
th .text-truncate {
overflow: visible !important; // 强制显示溢出内容
text-overflow: clip !important; // 移除省略号(或直接不设置)
min-width: max-content !important; // 按内容撑开列宽(可选)
}
}
}
@@ -4,12 +4,12 @@
<t t-inherit="web.ListRenderer" t-inherit-mode="extension">
<xpath expr="//thead//th[@t-if='hasSelectors']" position="before">
<t t-if="numSwitch">
<th class="o_list_record_selector list-number">#</th>
<th class="list-number">#</th>
</t>
</xpath>
<xpath expr="//tfoot//td[@t-if='hasSelectors']" position="before">
<t t-if="numSwitch">
<td class="o_list_record_selector"/>
<td/>
</t>
</xpath>
</t>