跳至内容
菜单
此问题已终结
1 回复
4022 查看

Hi,

When I click a button I'm executing a function, and then I'd like to go to the previous view, or at least go to home screen. How can I do it?

Thanks

形象
丢弃

Make the button return action view?

编写者

Yes, thanks, I'd realize I just needed to use tag='home'

编写者 最佳答案

Return this in your function:

return {'type': 'ir.actions.client', 'tag': 'home'}

形象
丢弃