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

Hello,

I want to put the "Add an item" button at the top. 

When I click Edit in form view, to add an item to my x2many field, the "Add an item" button appears always at the bottom. So, if the list is big (100 items), I have to scroll to the bottom to add a new item.


How can I put the "Add an item" button on the top of the view?


All possible suggestions are welcomed.

Thanks in advance.

Arpit

아바타
취소

I would also like to do this. Did you figure it out in the end?

베스트 답변

Hello Arpit Thakar,

You can use the attribute editable="top" like this:


So "Add an Item" that will be shown in the bottom but it will allow the user to enter a record from the top in case of tree/list view.see example below.


 <tree string=" Purchase Order Lines" editable="top">

 </tree>



Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

아바타
취소
작성자

Hi Jainesh Shah,

Thank you for your reply and for providing a solution. But the solution that you have provided is not what I am looking for.

In your attached image above, there is a button "Add a line" (blue colour text) at the bottom of the list view. I want to put it at the top of the list view. Because when I have more items in the list view, I have to scroll to the bottom of the table to add a new item to the list.

Kindly suggest a solution to achieve this.

Regards,

Arpit

관련 게시물 답글 화면 활동
0
12월 23
1474
1
5월 23
2988
0
3월 21
2125
2
12월 19
7608
0
4월 16
4852