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.

0

Invisible field based on Day on Odoo 8

By
Lulu
on 11/14/16, 4:59 AM 122 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?

0
Lulu
On 11/15/16, 8:46 PM

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

0
shameem@aχoncoms
On 11/14/16, 6:40 AM

Lulu, 

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

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