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' }
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Des 22
|
12278 | ||
|
1
Mei 22
|
3515 | ||
|
1
Feb 22
|
2407 | ||
|
0
Apr 20
|
3616 | ||
how to start/stop openerp-server on windows ?
Diselesaikan
|
|
7
Jan 24
|
154206 |