Hello, please help me
I need button click after refresh current page. What i to do ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello, please help me
I need button click after refresh current page. What i to do ?
HI delgertsetseg,
You can return an ir.actions.client action in order to refresh the current page you have open in Odoo:
return { 'type': 'ir.actions.client', 'tag': 'reload', }
You can find more information about actions, what they do and which options you have in the official docs. You can find this at https://www.odoo.com/documentation/11.0/reference/actions.html
Regards,
Yenthe
it's not working for form view.
Actually i want to refresh a form view when i remove some attachment, so for that reason i have override unlink() of attachment and in that i have written:
super(IrAttachment, rec).unlink()
return { 'type' : 'ir.actions.act_close_wizard_and_reload_view' }
return {'type': 'ir.actions.client','tag': 'reload',}
return {
'res_id': 1,
'view_id': self.env.ref('invoice_ocr.view_ocr_import_form').id,
'view_type': 'form',
'view_mode': 'form',
'res_model': model_name,
'type': 'ir.actions.act_window',
'target': 'new',
}
i have tried using all above return method but still it's not working, can you suggest??
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 | |
---|---|---|---|---|
|
2
thg 7 25
|
4204 | ||
|
2
thg 12 24
|
7450 | ||
How to ORDER BY? [Odoo 10]
Đã xử lý
|
|
2
thg 11 24
|
28129 | |
|
2
thg 5 24
|
7203 | ||
|
3
thg 3 24
|
6643 |