Commit Graph

2 Commits (ad9e5f2b5c5a34d3f01b3162e1bb9b51ea82f445)

Author SHA1 Message Date
Hai Lang b3f75abf0d [UPD] web_dialog_size: reduce rpc call to get config
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.
2023-06-20 11:43:37 +07:00
Jairo Llopis f7b883c4c3 [FIX] web_dialog_size: Fix usage for non-admins and reduce calls (#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.
2022-03-10 14:24:00 +00:00