Odoo Help

0

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

By
nja
on 6/16/17, 7:24 AM 182 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
0
Mohammed Amal
On 6/16/17, 8:10 PM

hello,

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.

nja
on 6/17/17, 5:22 AM

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

1 follower(s)

Stats

Asked: 6/16/17, 7:24 AM
Seen: 182 times
Last updated: 6/16/17, 8:10 PM