How to redirect a link to a tree view of a model by using Controller?
I tried this but doesn't work:
@http.route('/library/view_rents', auth='public', website="true")
def view_rents(self, **kw):
return {
"type": "ir.actions.act_window",
"res_model": "library.rental",
"views": [(False, "tree"), (False, "form")],
"target": "new",
}
auth='public",
how can you make a public user to access the backend