Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
3978 Visualizzazioni

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
Abbandona

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

Autore

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 ...

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
lug 16
4238
4
dic 23
17670
2
mag 21
19088
2
dic 18
4276
2
mag 18
4298