Odoo Help

0

How to make kanban text ellipsis

By
Nikola Gjorgjievski
on 4/28/16, 4:35 AM 483 views

I want to make text ellipsis in kanban view.

Here is my code:

<kanban>
	<field name="logo_img"/>
	<field name="name"/>
	<field name="info"/>
	<templates>
		<t t-name="kanban-box">
			<div class="oe_kanban_global_click">
				<div class="o_kanban_image">
					<img t-att-src="kanban_image('product.manufacturer', 'logo_img', record.id.value)"/>
				</div>
				<div class="oe_kanban_details">
					<strong>
						<field name="name"/>
					</strong>
					<div>
						<t t-esc="kanban_text_ellipsis(record.info.value, 32)" />
					</div>
				</div>
			</div>
		</t>
	</templates>
</kanban>

But I get an error

TypeError: dict.kanban_text_ellipsis is not a function
0
Gustavo Seluja
On 1/22/17, 9:58 PM

Hi Nikola, I have the same issue with version 9. Were you able to solve it?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 4/28/16, 4:35 AM
Seen: 483 times
Last updated: 1/22/17, 9:58 PM