-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[17.0][MIG] web_chatter_position: Migration to 17.0 #2893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[17.0][MIG] web_chatter_position: Migration to 17.0 #2893
Conversation
|
@trisdoan, but that is not the way we work here in OCA. You could supersede PR if it is clearly abandoned for long period of time or the author of the original PR approves it. The original author hasn't answered for for few weeks but as can be seen has done some activity in June so not the former case nor the latter. Also the superseding PR should be at least as good functionally as the superseded one but preferably better which unfortunately is not the case with your PR. Contributions are highly welcome and valued. In this case it would be best to help finish the existing PR. |
Hello @tva-subteno-it, I just checked, I works fine on my side Could you please share again (nicer if you provide video), but this time please open devtools (right click -> inspect -> console) |
Have you checked all the other options? I have posted a screenshot with "Bottom" selected. It's broken. |
Hello @Rad0van, thanks for your review. I just checked, my improve commit made the module behave like it does in version 16. web_chatter.mp4 |
|
@trisdoan I know why it wasn't working on my side: my screen was just a bit shorter than required to display correctly. If I move my window to a bigger screen, then the chatter appears correctly on the the right side. |
| isInFormSheetBg: "false", | ||
| isChatterAside: "true", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change set conditionally the values in order to display correctly the chatter on the bottom when the screen is too narrow to display it on the side.
| isInFormSheetBg: "false", | |
| isChatterAside: "true", | |
| isInFormSheetBg: `__comp__.uiService.size < ${SIZES.XXL}`, | |
| isChatterAside: `__comp__.uiService.size >= ${SIZES.XXL}`, |
| isChatterAside: "true", | ||
| }); | ||
| setAttributes(chatterContainerHookXml, { | ||
| "t-attf-class": "o-aside", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change set conditionally the values in order to display correctly the chatter on the bottom when the screen is too narrow to display it on the side.
| "t-attf-class": "o-aside", | |
| "t-attf-class": `{{ __comp__.uiService.size >= ${SIZES.XXL} ? "o-aside" : "" }}`, |
|
Hi @trisdoan, what do you think about the changes I suggested? |
3e7e6f8 to
4cc57c7
Compare
Hello, it looks good to me, thanks |
|
@Rad0van are you sure you have the latest version of this PR? On my side I have no problems and it seems that from the start of this PR you are the only one with this bug. |
I may have used the other PR's contents previously but I mage sure this time I chose the right one. For me everything works except for bottom. In that case the chatter is at bottom but is fixed - takes part of the screen and the main form just scrolls behind it. In 16 it was behaving differently (I no longer can see your video to compare). Here's a screenshot: However when in responsive mode and the chatter gets to botton it works as expected. |
|
@Rad0van I know why it's not working on your side: it's because of the |
|
Thank you so much for taking care of it @tva-subteno-it |
You're right. Without |
|
I found where the problem was: a new CSS rule was added in the .o_xxl_form_view .o_form_sheet_bg .o_form_sheet {
overflow: unset !important;
}It should fix the problem. |
|
@trisdoan Can you please add it? |
b2bb6c8 to
c630e41
Compare
|
Hello @tva-subteno-it, it's done, nice work, thank you |
|
Perfect, I think now this PR is ready for review |
DorianMAG
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in runboat,
functional test ok.
LGTM
Thx for this work
c630e41 to
afe9506
Compare
CasVissers-360ERP
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional review, thnx!
|
hello, is it possible to use the button as on version 16.0 instead of the configuration on user preferences? |
houssine78
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
mailing module - Because the chatter in mass mailing form view lie under a notebook tab, if user choose sided chatter, it will disappear
afe9506 to
263b4d3
Compare
|
Hello @yajo, I can reserve some time for this module when needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Juan Miguel Sánchez Arce \<<juan.sanchez@camptocamp.com>\> | ||
| - [Camptocamp](https://www.camptocamp.com) | ||
| - Iván Todorovich \<<ivan.todorovich@camptocamp.com>\> | ||
| - Tris Doan \<<tridm@trobz.com>\> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you work for camptocamp, if not please move this up or down
|
@tva-subteno-it as said here #2893 (comment) could we have your final review ? |
|
@tarteo the problem you're referencing comes from this suggestion. You can read the previous messages to understand the problem I had, the result that was displayed on narrow screen and the solution I came up with. |
263b4d3 to
0203102
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I think generally for people that installed web_responsive they use it to put the chatter at the bottom anyways.
@trisdoan Can you squash commits please
[IMP] web_chatter_position: improve function compile web_chatter_position: propose myself as maintainer
0203102 to
a03e8e0
Compare
|
/ocabot merge nobump |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
Congratulations, your PR was merged at f6d3d64. Thanks a lot for contributing to OCA. ❤️ |















Note
Context
With option side, there is duplicated chatter in Invoice module
With option bottom, when attachment viewer exists
Result in Invoicing (also applies with Sale module)
Option Bottom
Option Side