콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
4024 화면

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.

아바타
취소

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

작성자

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

베스트 답변

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'  

아바타
취소
관련 게시물 답글 화면 활동
0
7월 16
4292
4
12월 23
17728
2
5월 21
19193
2
12월 18
4334
2
5월 18
4363