Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5004 Lượt xem

Hi,

I have a kanban view ,i have to add the field description in that.if it has too many contents it exceed the field.How can I limit the view of description field in kanban view

Ảnh đại diện
Huỷ bỏ

You can use like:

first define field in kanban for usage

<field name="description_field_name"/>

After whenever you want to print this field add like this:

<t t-esc="record.description_field_name[30]"/>

40 is limit of char.

It doesn't work

On Wed, Apr 3, 2019 at 2:02 AM Haresh Kansara <hareshkansara00@gmail.com> wrote:

You can use like:

first define field in kanban for usage

<field name="description_field_name"/>

After whenever you want to print this field add like this:

<t t-esc="record.description_field_name[30]"/>

40 is limit of char.

Sent by Odoo S.A. using Odoo.

can you share your code tgen i can more helpful for you.

<span name="description" t-if="record.description.raw_value">Description : <field name="description"/><br/></span>
This how it looks like

On Thu, Apr 4, 2019 at 3:18 AM Haresh Kansara <hareshkansara00@gmail.com> wrote:

can you share your code tgen i can more helpful for you.

Sent by Odoo S.A. using Odoo.

Tác giả

<span name="description" t-if="record.description.raw_value">Description : <field name="description"/><br/></span>

Câu trả lời hay nhất

You can set text limit using python functions and string slicing or you can do one thing add one css classs in that field where you display and set height width of that field div and set overflow: hidden;

Thanks and regards

Haresh Kansara

Ảnh đại diện
Huỷ bỏ
Tác giả

Can you explain this with code??Is it write in kanban view?

Tác giả

How to set display limit on description field in kanban view???

Tác giả

How to set display limit on description field in kanban view???

Tác giả

I need to enter the description it maybe any length.but it should only show some of the contents or the first 4 or 5 words in kanban view.thats my requirement

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 21
7900
1
thg 4 21
4069
0
thg 11 19
4398
0
thg 11 18
2639
1
thg 1 25
1809