Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1817 Weergaven

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
Annuleer