-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
base: 17.0
Are you sure you want to change the base?
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 |
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
mailing module - Because the chatter in mass mailing form view lie under a notebook tab, if user choose sided chatter, it will disappear
c630e41
to
afe9506
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.
Functional review, thnx!
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