Skip to Content
Menu
This question has been flagged
3 Replies
3224 Views

Hello Community,

Is there a possibility to reload an editable tree view list after a record creation/update , i know there is some module available on odoo apps that use automated action and bus.bus model but it's not working on my case.

thanks in advance.

Avatar
Discard

What's the need of reloading list views after upadation/creation ?

Author

Hello Hilar AK, the logic we have is that on some condition we created more than one record at once so i need to refresh the page to see the new records instead it will be good if we can reload the tree view to show the created record in real time , I hope my answer is clear. Thanks

I know this is old, but did you find a solution to this ?

I'm looking for the same thing in Odoo 14 and I didn't find any good solution

I cannot use the new() method which actually works as expected (adds a record, shows it into the view and it can be discarded as it's only in memory until user saves) because I've extended the model with parent / child hierarchy relationship and I need the parent ID in order to connect child records in the same transaction ...

Best Answer

you can set an order based on create_date and like this you will always get the last created record in your tree view 

in your py file you can inherit your module and add 
   _order = ' create_date asc'  

Avatar
Discard
Related Posts Replies Views Activity
0
Jul 16
3449
4
Dec 23
16363
2
May 21
17594
2
Dec 18
3224
2
May 18
3559