I want to reload the kanban view of tasks in project while changing the task stages. Given return as:
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
But its not working.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to reload the kanban view of tasks in project while changing the task stages. Given return as:
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
But its not working.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 2 19
|
2609 | ||
|
7
thg 8 25
|
27749 | ||
|
1
thg 12 17
|
5941 | ||
|
0
thg 8 19
|
3347 | ||
|
3
thg 2 24
|
1292 |
can you explain it a bit more with example
In project module, while changing the stages of task i want to reload the kanban view page.
@api.onchange('stage_id')
def reload_page(self):
# codes
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
When i call this function on a button click it works. But i need to reload the page automatically when the stage is changed