Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
6066 Vizualizări

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?

Imagine profil
Abandonează

hi need the same requirement any idea.

Related Posts Răspunsuri Vizualizări Activitate
3
iun. 22
4017
1
sept. 21
3260
5
dec. 18
12018
6
ian. 24
14028
2
dec. 22
7789