Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5918 Vues

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
Ignorer

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

Meilleure réponse

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
Ignorer
Auteur

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

Publications associées Réponses Vues Activité
0
déc. 23
889
1
mai 23
2174
0
mars 21
1674
2
déc. 19
7049
0
avr. 16
4446