Odoo Help


Odoo8: Find a way to reset a field to his default value when this one has been hidden in form side?

on 16/06/17 07:24 376 views

As my question said, I would like to know if there is a better or an "automatic" way to do this kind of behavior.

Actually I do this in my code :

# When the field has been hidden for some reason
my_visible_field = default_value

Mohammed Amal

--Mohammed Amal--

| 5 3 7
Malappuram, Índia
--Mohammed Amal--

Email : mohammedamal.n@gmail.com

Mohammed Amal
On 16/06/17 20:10


I hope you are hiding your field according to value from another field(say field_2) in your from.

Then you can give onchange function to your field_2 to set value for your first field

I exactly do that, but I would like to know if there is another way to do that.

on 17/06/17 05:22

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

1 follower(s)


Asked: 16/06/17 07:24
Seen: 376 times
Last updated: 16/06/17 20:10