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' }
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
2
Dec 22
|
12989 | |||
|
1
May 22
|
3929 | |||
|
1
Feb 22
|
2792 | |||
|
0
Apr 20
|
4228 | |||
|
7
Jan 24
|
155639 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.