I tried to add section_and_note_one2many widget in purchase order model. But the lines don't retain the sequence after saving.
I had to create a sequence record manually and write an onchange to increment the sequence. Which works perfectly.
But I see in the sale.order model there is nothing like separate sequence record or onchange. So I wonder how it works.
Thanks!
Reorder records in tree view using handle widget: https://learnopenerp.blogspot.com/2022/05/use-handle-widget-to-reorder-records-in-tree-view-odoo15.html