Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6535 Zobrazení

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

Avatar
Zrušit

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

Nejlepší odpověď

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

   

Avatar
Zrušit
Autor

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 Odpovědi Zobrazení Aktivita
0
pro 23
1378
1
kvě 23
2887
0
bře 21
2053
2
pro 19
7515
0
dub 16
4795