Odoo Help


Invisible field based on Day on Odoo 8

on 11/14/16, 4:59 AM 201 views

i'm trying to make a field that can be fill based on day. if the relate day unchose, so it can be hide.
i've tried using attrs invisible but it can't be parse.
is there another way to make it invisible based on day?

On 11/15/16, 8:46 PM

Mr.Shameem thank you for your answer. I've tried using your advice, but it still error.

On 11/14/16, 6:40 AM


Did you try this

<field name="your_field" attrs="{'invisible': [('day', '=', 2012-04-25)]}"/>

If do not work, you create a boolean field that is computed the visibility of the field. Then set attrs to that field.

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)


Asked: 11/14/16, 4:59 AM
Seen: 201 times
Last updated: 11/15/16, 8:46 PM