-
-
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
[16.0][FIX] web_dialog_size: Fixed the issue that form view is changing its… #3066
Conversation
… size when changing any field in the form
I'm not able to reproduce the scenario you are mentioning in the issue. Can you please put exact steps to reproduce it? And please don't open an issue and then the PR. You can put the issue text here in the PR and close the issue. |
First of all: Sorry, I thought creating an issue before raising a pull request is the official workflow. I have recorded the issue which I can easily reproduce in the web-runboat. Precondition for the video: I have modified the sale order line to open a form instead of inline edit. web-dialog-size-issue.movYou can try yourself here: http://oca-web-16-0-913230bed5f6.runboat.odoo-community.org/web?#cids=1&menu_id=186&action=305&model=sale.order&view_type=form Steps:
|
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.
I tested in your runbot and looks like v17 has an issue in that conditions as well. You didn't mention that you modified that sales order view to raise the form dialog for the order lines.
@CarlosRoca13 can you take a look on the fix?
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.
The changes made make sense and I’ve tested it as well, and it resolves the issue. From my side, it’s good to go 😄
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.
👍
/ocabot merge patch It will not be necessary on 17.0 so don't need to port the changes. Thanks 4 the patch 😄 |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at d7a567e. Thanks a lot for contributing to OCA. ❤️ |
The size of a form is inconsistent when using web_dialog_size. It changes when changing any field in the form (which leads to rerendering the form).
Affected versions: 16.0
Steps to reproduce the behavior:
Scenario 1:
Scenario 2:
Expected behavior
The form should keep it's current size when changing any field values
@pedrobaeza @chienandalu Kindly asking for a review :)