something like this:
@http.route(['/account_financial_report/open/<int:report_id>'], type='http', auth="public")
def open_account_financial_report(self, report_id, **kw):
return {
'name' :"action_name",
'view_type' : 'form',
'view_mode' :'tree,form',
'res_model' : 'account.financial.report',
'view_id' : self.env.ref('account.view_account_financial_report_form').id,
#'views' : [(view_id,"form"),(view_id,"tree")],
'type' : 'ir.actions.act_window',
'res_id' : self.id,
'context' : {},
'domain' : [],
'target' : 'new'
}
thanks!!!
How to do it