Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

BhaveshHeliconia
Copy link
Contributor

No description provided.

anthony-muschang and others added 30 commits October 15, 2025 14:20
New module that let the user expand a dialog box to the full screen
width.
* [IMP] web_dialog_size: Put dialog size expanded by default

* [REM] web_popup_large: By duplication of the functionality

* [IMP] web_dialog_size: README and contributors

* [ADD] configuration parameter for default behavior

[FIX] return super's promise
[IMP] use fontawesome icons for buttons
* IMP: Added draggable support to dialogs
* FIX: web_dialog_size: export modal
  - PR OCA#733 introduced draggable dialogs which broke some of them
- default_maximize option wasn't working due to strict value comparison
…#954)

This addon had 2 problems after migrating to v11:

1. One call to backend's `ir.config_parameter.get_param` was done for
   each instantiated dialog, while the setting served for the whole
   session equally.
2. That model is now readable only by admin users, so non-admins
   couldn't use the default at all.

Fixed now.
Checking result of rpc call, `dialog_maximize`, will end to be always `true` as the method will return a json: `{'dialog_maximize': false }`. So i changed the test to test the value of json key `dialog_maximize`
Includes some manual fixes to silent ESLint warnings.
It is important to let users decide their default dialog size. Some have ultrawide monitors and this module does more harm than benefit.

Here I add such task to roadmap, to avoid forgetting about it.

@Tecnativa
[IMP] web_dialog_size: Migration to 16.0

[REM] Remove duplicate configuration readme file

[FIX] Make it work for normal dialogs also

[FIX] SelectCreateDialog

precommit
Currently translated at 100.0% (1 of 1 strings)

Translation: web-16.0/web-16.0-web_dialog_size
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_dialog_size/it/
@BhaveshHeliconia
Copy link
Contributor Author

ping @pedrobaeza @CarlosRoca13 @DavidJForgeFlow for the reviews. Thanks in advance.

@pedrobaeza
Copy link
Member

/ocabot migration web_dialog_size

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Oct 15, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 15, 2025
42 tasks
Copy link

@giarve giarve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!! The last improvement this module could have is basically caching the get_web_dialog_size_config result in user local storage similar to web_remember_tree_column_width

Sometimes there is a delay for resizing (different issue than this one), but it is due to the http request being done every single time. Only shown in latency scenarios where the odoo server is located far away not localhost.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza
Copy link
Member

@BhaveshHeliconia can you consider adding that enhancement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.