Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6417 Представления

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

Related Posts Ответы Просмотры Активность
0
дек. 23
1275
1
мая 23
2777
0
мар. 21
1984
2
дек. 19
7397
0
апр. 16
4714