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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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
Can you explain this with code??Is it write in kanban view?
How to set display limit on description field in kanban view???
How to set display limit on description field in kanban view???
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
1
sept. 21
|
7677 | ||
|
1
apr. 21
|
3855 | ||
|
0
nov. 19
|
4211 | ||
|
0
nov. 18
|
2485 | ||
|
1
ian. 25
|
1552 |
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.
can you share your code tgen i can more helpful for you.
This how it looks like
<span name="description" t-if="record.description.raw_value">Description : <field name="description"/><br/></span>