diff options
| author | IEL <iel@odoo.com> | 2020-10-30 11:07:14 +0000 |
|---|---|---|
| committer | IEL <iel@odoo.com> | 2020-11-02 17:40:06 +0000 |
| commit | bade0ba9b2021c4fae799752328721ec4dad59df (patch) | |
| tree | e60bec6f686f2c5c7008871e836017c37b191bac /addons/project/views | |
| parent | b0028c05d6ba9c67f16992ddb446eea6a854d099 (diff) | |
[FIX] *: fix image parsing error on saving res config
WHAT: apply 93a7695f65baf00d1f82481d6a2a97e6c11940a8 for all res.config.settings
menus
WHY: the same reason as in 93a7695f65baf00d1f82481d6a2a97e6c11940a8:
When saving, a read is called. By default, read has
bin_size to true to avoid performances issues.
It will return the image size instead of the content
it may lead to image dissapearing or "Incorrect padding" error
HOW:
find . -iname "*.xml"|xargs grep "\"context\".*'module'" -l | xargs sed -i "s/\(\"context\".*'module'.*\)\}/\1, 'bin_size': False}/"
git checkout -- addons/base_setup/views/res_config_settings_views.xml
---
PR for General Settings: https://github.com/odoo/odoo/pull/47297
opw-2346644
closes odoo/odoo#61212
X-original-commit: 7c55efa88b72bd1f3f0f32f7f738e2fda5aa4abd
Related: odoo/enterprise#14545
Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
Diffstat (limited to 'addons/project/views')
| -rw-r--r-- | addons/project/views/res_config_settings_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project/views/res_config_settings_views.xml b/addons/project/views/res_config_settings_views.xml index 96d56036b2b..77c897ebef6 100644 --- a/addons/project/views/res_config_settings_views.xml +++ b/addons/project/views/res_config_settings_views.xml @@ -97,7 +97,7 @@ <field name="res_model">res.config.settings</field> <field name="view_mode">form</field> <field name="target">inline</field> - <field name="context">{'module' : 'project'}</field> + <field name="context">{'module' : 'project', 'bin_size': False}</field> </record> <menuitem id="project_config_settings_menu_action" name="Settings" parent="menu_project_config" |
