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

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>'));
},

아바타
취소