Odoo Help

0

Invisible field based on Day on Odoo 8

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

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

Question tools

3 follower(s)

Stats

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