Today you will learn how to redirect to tree view from button click in odoo. In this tutorial I will create a button in xml and method for that button in py.


How to Open Tree View on Button Click

Read More: Display multiple form and tree view for same model 

open_tree_view_on_button_click.xml

<button name="open_tree_view" type="object" class="oe_highlight" string="Open Tree View"/>

open_tree_view_on_button_click.py