Skip to Content
Menu
This question has been flagged

Hey,


In my custom Odoo module I want to create and delete records from a Menu-Button. This works fine, however the related tree-view does not reload. I tried adding the following code at the end of my function without effect:


return {

    'type': 'ir.actions.client',

    'tag': 'reload',

    }


Is there a way to successfully reload my current tree view after clicking a button which executes a function to create a bunch of records? I am using create() to create the records, another button deletes all records of my TransientModel with unlink().

Avatar
Discard
Best Answer

Hi,


I'm interested by your solution if you find one.

Thank you

Avatar
Discard
Author

So far no solution, unfortunately. We currently just refresh the view by clicking.

Related Posts Replies Views Activity
0
Jul 16
3449
2
Jul 24
1310
1
Sep 23
939
1
Jun 21
3048
3
Dec 19
3225