summaryrefslogtreecommitdiff
path: root/addons/event
diff options
context:
space:
mode:
authorIEL <iel@odoo.com>2020-10-30 11:07:14 +0000
committerIEL <iel@odoo.com>2020-11-02 17:40:06 +0000
commitbade0ba9b2021c4fae799752328721ec4dad59df (patch)
treee60bec6f686f2c5c7008871e836017c37b191bac /addons/event
parentb0028c05d6ba9c67f16992ddb446eea6a854d099 (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/event')
-rw-r--r--addons/event/views/res_config_settings_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/event/views/res_config_settings_views.xml b/addons/event/views/res_config_settings_views.xml
index 37a47f62124..15cb95fbc97 100644
--- a/addons/event/views/res_config_settings_views.xml
+++ b/addons/event/views/res_config_settings_views.xml
@@ -114,7 +114,7 @@
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
- <field name="context">{'module' : 'event'}</field>
+ <field name="context">{'module' : 'event', 'bin_size': False}</field>
</record>
<menuitem id="menu_event_global_settings" name="Settings"