- Mailing Lists
- Contributors
- x2many fields vertical scrollbar?
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
Technical Question: Restart Odoo process after res.partner model change
Tree view with preview - is it possible?
x2many fields vertical scrollbar?
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?
by Francesco Ballerini - 10:06 - 21 Jun 2024
Follow-Ups
-
Re: x2many fields vertical scrollbar?
I'm sorry for bottom posting, just wanted to notify that adding.table-responsive {
overflow: visible;}actually made the overflow-x always visible as well. I didn't notice because I didn't have enough fields in the view while checking for it.Regards,Francesco Ballerini
by Francesco Ballerini - 02:46 - 21 Jun 2024 -
Re: x2many fields vertical scrollbar?
Hi David, the module you've suggested actually makes the x2m listview header sticky !As there were few scss lines I've tested them one by one, realized that you also need to add these lines in order to actually apply this web responsive code which makes list-view header sticky to x2m list as wellI don't have a good perception or particular skills in scss/css so I am not sure why these lines are required to apply the "position:sticky" thing, but I guess we made it 😁.table-responsive {
overflow: visible;
}The footer issue remains as it's still only visible when scrolling to the bottom, but the sticky header was more important. Thanks for all the advice!Regards,Francesco BalleriniIl giorno ven 21 giu 2024 alle ore 12:32 David Beal <notifications@odoo-community.org> ha scritto: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
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Francesco Ballerini - 02:31 - 21 Jun 2024 -
Re: x2many fields vertical scrollbar?
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
by David BEAL - 12:31 - 21 Jun 2024 -
Re: x2many fields vertical scrollbar?
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 | DECLe 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
by Francesco Ballerini - 11:26 - 21 Jun 2024 -
Re: x2many fields vertical scrollbar?
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 | DECLe 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
by Yann Papouin - 10:46 - 21 Jun 2024