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

Hi everybody.

How I use the object 'Add an item' before a tree view? I want something like this: image description

I can make this on the chrome console : $('.oe_list_content').before($('.oe_form_field_one2many_list_row_add'));

But when I change the code [openerp/addons/web/static/src/js/view_form.js], I can't see the object.

 if ($padding.length) {
         $padding.before($newrow); 
        } else {
            //this.$current.append($newrow)
            this.$current.before($newrow);
        //  $('.oe_list_content').before($('.oe_form_field_one2many_list_row_add'));
       }

However, I can move the object 'Add an item' for the first row on table : this.prepend($newrow) image description

Anyone help me with this situation?

อวตาร
ละทิ้ง

hi need the same requirement any idea.

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มิ.ย. 22
4016
1
ก.ย. 21
3257
5
ธ.ค. 18
11997
"add an item" to clicking a buttom แก้ไขแล้ว
6
ม.ค. 24
14023
How can I add a field in sale.order.line แก้ไขแล้ว
2
ธ.ค. 22
7782