Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6389 Vistas

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
Descartar

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

Mejor respuesta

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
Descartar
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

Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 23
1260
1
may 23
2770
0
mar 21
1975
2
dic 19
7392
0
abr 16
4708