summaryrefslogtreecommitdiff
path: root/addons/base_setup/views
diff options
context:
space:
mode:
authorjvm-odoo <jvm@odoo.com>2020-03-11 06:53:21 +0000
committerjvm-odoo <jvm@odoo.com>2020-03-12 12:10:11 +0000
commit8544155b132a64231914fee6085c1dd5a0f65236 (patch)
treeaad664d0b97f455dc9ee00c9c78e16a74c8d7604 /addons/base_setup/views
parente47ba3845617a31d8c20486843bb54dfcd7276ac (diff)
[FIX] base_setup: fix image parsing error on save
Issue - Have 2 languages installed - Install Invoicing & Website - Go in Settings - Search "logo" (image) - Upload a logo for your website - Save - Search "Default terms & conditions" (translatable field) - Click on the translate button (e.g. EN if you are in english) A popup will appears saying that you should save your changes. - Click on Save & do not edit translation (not needed) - Search "logo" Image disappeared Cause 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 This is why the image disappeared. Solution As configuration is dirty, you are forced to save & it will always read with bin_size set to true. My solution would be to set it to false for settings. OPW-2208232 X-original-commit: 93a7695f65baf00d1f82481d6a2a97e6c11940a8
Diffstat (limited to 'addons/base_setup/views')
-rw-r--r--addons/base_setup/views/res_config_settings_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml
index d25eb521a5a..9030fdb278b 100644
--- a/addons/base_setup/views/res_config_settings_views.xml
+++ b/addons/base_setup/views/res_config_settings_views.xml
@@ -395,7 +395,7 @@
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
- <field name="context">{'module' : 'general_settings'}</field>
+ <field name="context">{'module' : 'general_settings', 'bin_size': False}</field>
</record>
<menuitem