Don't set default value for on_change and set id

issue3487
review2501002
reset tree_states_done when setting a screen group

The O2M screen's tree_states_done property is filled with the view id, this
property is used to know when the state must be set or not. This has the effect
of not restoring the state of O2M widget when switching from a record to
another. This change fixes this behavior.

issue3609
review2791003
Add missing states management for Binary in TreeView

issue3570
review2811002
merge
Encode gettext value to match with string value

issue3587
review2991002