After installing web_dialog_size and setup its parameter, there's
a slight delay where we can see the modal at its normal size and then
after a rpc to ir.config_parameter:get_web_dialog_size_config() the
modal is maximized.
This commit is to set a session value then use it to set initial dialog
size upfront without delay.
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
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`
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.
* [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