Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3571 มุมมอง

Behavior on Odoo 11

In my sheet, I have a nested tree view, related with parent ID. For sorting/position in the nested tree view, I just use the sequence field.

The child form allows to insert a sequence number manually (actually, it's done by an "insert after" functionality, but the effect is same, when just entering the number). On save of the child, unfortunately, the element is added to the parent nested tree view to the end.

If I click on sort - it will be on the right position though. As well if I finally save the parent and reload the page.


I tried to figure out how to fix this, or if I could trigger a resort-action in a simple way on child save, but did not find an answer (not consisting of rewriting a lot of JavaScript etc. basically rewriting basic Odoo functionality). Also, maybe my approach is not the desired one, and there is much better solution that enters a new element on the position defined by the sequence field.


A little bit of inconsistency would not be a problem at all. It was not a requirement. But by displaying the element in the nested tree view to the end: Most of the time it is not visible after saving because it's on the last page . And this causes hassle and confusion.


Also, saving and reloading the parent view on child element create+save would not be a problem. In case, there is a simple solution for it.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 22
3321
1
ส.ค. 21
6427
2
ก.พ. 18
5700
1
ต.ค. 15
3272
1
ก.พ. 23
2921