In odoo9 I have these 2 views.
16 account.analytic.line.tree Tree account.analytic.line analytic.view_account_analytic_line_tree
16 account.analytic.line.tree Tree account.analytic.line hr_timesheet.hr_timesheet_line_tree
now when I make a function with a return, and I say them this:
return {
'type': 'ir.actions.act_window',
'res_model': 'account.analytic.line',
'view_type': 'form',
'view_mode': 'tree',
}
I get every time on the analytic.view_account_analytic_line_tree view. But I wan't to go to the other view.
How can I fix this?