Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
3970 Widoki

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.

Awatar
Odrzuć

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

Autor

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

Najlepsza odpowiedź

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'  

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 16
4232
4
gru 23
17670
2
maj 21
19085
2
gru 18
4276
2
maj 18
4297