Can we reduce View Tree State calls?

AFAIU ir.ui.view_tree_state get() method is only used in pure tree structures (not lists) in order to show the Tree opened and selected in the same way it was the last time the user accessed it.

However, the method is called for all tree views that are shown in a form view and I don’t see how this affects the behaviour of sao. Looks like it is not being used for anything, or am I missing something?

Can we avoid all those calls?

We must use the keep the same behaviour on Tryton and on SAO. So if they are reduced from one place they should be reduced from the other.

Probably we can remove it from the views that did not have the field_childs set which is for list views.