Odoo Help


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.


Find the "set_editable" state of a list view

Nicolas Clavier
on 3/19/13, 11:52 AM 1,578 views

Hi folks,

In v7, the context of a list view being edited inline, (with editable="bottom" or "top"), I'm looking for a way to manipulate the visibility of a field based on the state of the field: attrs="{'invisible':[('context.set_editable','=',True)]}" but example above crashes with unknown field error.

Is there a variable holding the state of the list view telling wether it is editing or browsing ?

Thanks for your time, Nicolas



| 4 4 8
Casablanca, Morocco
On 3/19/13, 12:12 PM

Try this in your field


Thanks, I just tried but there doesn't seem to be the 'set_editable' key in the context at this level (in the column). pity, it looked adequate..

Nicolas Clavier
on 3/19/13, 12:57 PM

According to .../addons/web/doc/list_view.rst this setting will only tell if the list is editable, not if it's currently being edited.

SalesInq, Ethan Furman
on 11/11/13, 3:29 PM

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)


Asked: 3/19/13, 11:52 AM
Seen: 1578 times
Last updated: 3/16/15, 8:10 AM