Skip to content

Commit dc65619

Browse files
committed
Truncate description in kanban view.
1 parent d00f611 commit dc65619

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

product_brand/product_brand_view.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
<kanban>
9696
<field name="logo"/>
9797
<field name="products_count"/>
98+
<field name="description"/>
9899
<templates>
99100
<t t-name="kanban-box">
100101
<div class="oe_kanban_vignette oe_semantic_html_override">
@@ -114,7 +115,12 @@
114115
<t t-esc="record.products_count.value"/> Products
115116
</a>
116117
</div>
117-
<field name="description"/>
118+
<span>
119+
<t t-esc="record.description.value.substr(0,200)"/>
120+
<t t-if="record.description.value.length > 200">
121+
<a type="open"><b>...</b></a>
122+
</t>
123+
</span>
118124
</div>
119125
</div>
120126
</t>

0 commit comments

Comments
 (0)