I am archiving a One2many field via code but it still shows until I manually refresh the screen.
Can my code trigger this refresh?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am archiving a One2many field via code but it still shows until I manually refresh the screen.
Can my code trigger this refresh?
Just return a client reload action at the end of your code:
def your_method(self):
# your code ends with
self.action_archive()
# line to add
return { 'type': 'ir.actions.client', 'tag': 'reload' }
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
2
12월 22
|
12348 | ||
|
1
5월 22
|
3579 | ||
|
1
2월 22
|
2459 | ||
|
0
4월 20
|
3682 | ||
|
7
1월 24
|
154391 |