This question is related to:
https://www.odoo.com/forum/help-1/question/open-a-form-view-for-a-specific-record-or-go-back-to-previous-view-64998
When I'm navigating between views, in the header I can see this history:
Example: Opportunities / New oportunity / Administrator
Clicking in New oportunity would navigate one view back, clicking in Opportunities would navigate 2 views back.
How can I do this automatically from a function in python?
I have managed to create a new view, but can't go back to last view.
Thanks,
Pau