Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4004 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

Make the button return action view?

Tác giả

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

Tác giả Câu trả lời hay nhất

Return this in your function:

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

Ảnh đại diện
Huỷ bỏ