Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: x2many fields vertical scrollbar?

by
Akretion France., David BEAL
- 21/06/2024 12:28:00
Hi all,

Consider using https://github.com/CybroOdoo/CybroAddons/tree/16.0/list_view_sticky_header
for this use case.
It works very well.

It might be nice if Cybrosys would consider bringing this module under
the OCA umbrella.

CybroAddons repo is very huge, it could be an advantage to move it to
a smaller one.


Regards


David BEAL
Akretion
Consultant ERP Odoo

Le ven. 21 juin 2024 à 11:27, Francesco Ballerini
<notifications@odoo-community.org> a écrit :

>

> Hi Yann,

>

>

> I'm really grateful for the feedback, your approach is working. I only have couple of issues with:

>

>

> - sticky header/footer, I have web responsive installed and I verified that this web responsive code is also applying to the x2m list views by changing some colours : ) . But for some reason header and footer will not actually be when adding vertical scrolling to x2m list

>

>

> - overflow-x: useful when we have a decent number of fields in the x2m listview, at the moment I only see it when I reach the bottom of scroll-Y.

>

>   I need it always visible though

>

>

> Do you have additional suggestions to cover this?

>

>

> Thank you

>

> --

>

> Francesco Ballerini

>

>

> Il giorno ven 21 giu 2024 alle ore 10:53 Yann Papouin <notifications@odoo-community.org> ha scritto:

>

> This should be enough:

>

> .o_form_view .o_field_widget .o_list_view {

>   overflow-y: scroll;

>   max-height: 600px;

> }

>

> Add it using a custom module

>

> --

> Yann PAPOUIN, Ingénieur R&D | DEC

>

>

> Le ven. 21 juin 2024 à 10:09, Francesco Ballerini <notifications@odoo-community.org> a écrit :

>

> Hi,

>

>

> I am managing a situation where we often have a lot of lines on some main apps x2many fields (sale, picking, invoice, purchase..).

>

>

> It's not really handy when we are in a range of 60-200 lines, I just discovered that I could permanently increase the "limit" attribute on the tree-view.

>

>

> That would partially solve the problem, but in my opinion another part of the issue is that if you increase the "pager limit" to contain all lines, all the elements after the field will be pushed down in the view.

>

> It would be nice to have a vertical scrolling so that we can let's say set a limit of 500 lines (so they will all be loaded in the same pager) then have a limited height and be able to vertically scroll through the lines.

>

>

> Do you know any way to achieve this? Maybe someone already made a module for that?

>

>

> Have a nice day,

> Francesco Ballerini

>

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe

>

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe

>

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference