In commit [1], a check was added to see if a media is editable in order to prevent its edition if it is not the case. However, this also had as effect to block the edition of some grid images. Indeed, as the columns in grid mode containing only an image have their `contenteditable` property set to `false`, the images don't pass the check because their parent is therefore not editable. This commit removes the `contenteditable` property from these columns in order to make their images pass the check and therefore allow their edition. Tests are also added, ensuring that these grid images can be correctly replaced. [1]: https://github.com/odoo/odoo/commit/ddade4346347266b7f699d05865578dc96e2bf98 opw-3028116 Fixes #103234 closes odoo/odoo#104899 X-original-commit: d8c374e3e6b31bf88aa42952aadf3379936f7600 Related: odoo/design-themes#617 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
32 lines
1020 B
Python
32 lines
1020 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from . import test_attachment
|
|
from . import test_auth_signup_uninvited
|
|
from . import test_automatic_editor
|
|
from . import test_base_url
|
|
from . import test_client_action
|
|
from . import test_configurator
|
|
from . import test_controllers
|
|
from . import test_converter
|
|
from . import test_crawl
|
|
from . import test_disable_unused_snippets_assets
|
|
from . import test_fuzzy
|
|
from . import test_get_current_website
|
|
from . import test_grid_layout
|
|
from . import test_http_endpoint
|
|
from . import test_lang_url
|
|
from . import test_menu
|
|
from . import test_page
|
|
from . import test_performance
|
|
from . import test_qweb
|
|
from . import test_res_users
|
|
from . import test_snippets
|
|
from . import test_theme
|
|
from . import test_ui
|
|
from . import test_views
|
|
from . import test_views_inherit_module_update
|
|
from . import test_website_favicon
|
|
from . import test_website_form_editor
|
|
from . import test_website_reset_password
|
|
from . import test_website_visitor
|