Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Is there a way to truncate text of a fields.text() (in tree view especially), so that lines aren't huge in height ? I was thinking of a widget attribute in xml maybe ?
Thanks for your time. Nicolas
Hi, there is a function which do that in 6.0, function truncate_data, you can find it here :
update with new informations given by comment after :
if you can have status of the page, editable or browse, you can use function I gave before :
create a new field text which is updated by onchange with first you are already created.
in tree view in function of state of the page (editable or browse), one is visible, the second no.
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
|Asked: 3/14/13, 6:57 AM|
|Seen: 5346 times|
|Last updated: 4/15/16, 10:45 AM|