Skip to Content
Menu
This question has been flagged
1641 Views

I try to append inside from view have One2many filed checkbox at front, and everything work fine by using .prepend(), but when the table is sorted .prepend() does not work,


I want to understand why this is happening and how to solve this problem.


start: function() {
            this._super.apply(this, arguments);
            var self=this;
                   
            self.$el.find('table.o_list_view tr:not(:first)')
                    .prepend($('<td class="o_list_record_selector"><div class="o_checkbox"><input type="checkbox"><span></span></div></td>'));
},

Avatar
Discard