Behavior on Odoo 11
In my sheet, I have a nested tree view, related with parent ID. For sorting/position in the nested tree view, I just use the sequence field.
The child form allows to insert a sequence number manually (actually, it's done by an "insert after" functionality, but the effect is same, when just entering the number). On save of the child, unfortunately, the element is added to the parent nested tree view to the end.
If I click on sort - it will be on the right position though. As well if I finally save the parent and reload the page.
I tried to figure out how to fix this, or if I could trigger a resort-action in a simple way on child save, but did not find an answer (not consisting of rewriting a lot of JavaScript etc. basically rewriting basic Odoo functionality). Also, maybe my approach is not the desired one, and there is much better solution that enters a new element on the position defined by the sequence field.
A little bit
of inconsistency would not be a problem at all. It was not a
requirement. But by displaying the element in the nested tree view to
the end: Most of the time it is not visible after saving because it's on
the last page . And this causes hassle and confusion.
Also,
saving and reloading the parent view on child element create+save would
not be a problem. In case, there is a simple solution for it.