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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
जुल॰ 16
|
6571 | ||
|
2
मई 25
|
10283 | ||
|
5
दिस॰ 21
|
12720 | ||
|
3
नव॰ 20
|
9732 | ||
|
0
जून 17
|
3329 |