Odoo Help

Welcome!

This community 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.

1

Inline editable treeview

By
Cyril Sester
on 8/26/14, 10:49 AM 5,147 views

I would like to have an inline editable treeview as in Journal Items (when you click on an element from the list, it becomes editable inline). Any idea how to do this?

Thanks in advance,

Best regards,

3
Ben Olsen
On 8/26/14, 11:29 AM

You need to change that treeview to have an additional attribute:

editable="top"

You can also do "bottom" if you prefer that. You need to put that change in a custom module, with XML, if you want that change to be permanent. You can also activate developer mode from the "About Odoo" popup, and edit the view manually through the additional menu option on top of the page. This change will be overwritten the next time you upgrade/refresh the Odoo modules, though.

Ok, I was trying to do that on a function field with type="one2many", which don't work. I accepted your answer as it works in "normal" use case :) Regards

Cyril Sester
on 8/27/14, 2:34 AM

Well, by definition function field does not directly relate to a physical record and thus usually is not editable. But you can specify fnct_inv for the function field to specify how values will be stored/saved and then you can do the inline editing. Samples abound in account/account.py.

Ivan
on 8/27/14, 5:20 AM

It's not directly linked to the question, but your comment totally solves my problem! I now have a function field type one2many with an fnct_inv in my model and the editable="top" works with it! Thanks a lot. Now, I've one last issue : https://www.odoo.com/forum/help-1/question/fields-function-with-type-one2many-in-wizard-61049. Any idea ?

Cyril Sester
on 8/27/14, 5:51 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/26/14, 10:49 AM
Seen: 5147 times
Last updated: 3/16/15, 8:10 AM