This commit adds translation capability to custom snippets. Before this commit, the custom snippet was not translate friendly: 1. Neither when saving a block as custom snippet 2. Neither when dropping a custom snippet into a page. This was a known limitation for years. But now it's time to make it work. Step to reproduce (part 1): - Enable french - Drag & drop Title snippet in a page - Translate the Title - Save the block as custom snippet -> Go in the backend view of this custom snippet, in debug, there is no translation that followed the title. Step to reproduce (part 2): - Following previous steps, now add the translation manually on the custom snippet view - Back in a page in edit mode, drag & drop this custom snippet in the page - Switch to french -> The title is not translated, the drag & drop copy code but no translations Those are the "page/view" to "page/view" translation transfer, but it could also be any html field (like a product description) to view (custom snippet) or view (custom snippet) to any html field. task-3375518 opw-3242100 X-original-commit: 2bd6c1a8d653453692211eef0f5d46a0047eb6f2 Part-of: odoo/odoo#150945
38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from . import test_assets
|
|
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_custom_snippets
|
|
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_iap
|
|
from . import test_ir_asset
|
|
from . import test_lang_url
|
|
from . import test_menu
|
|
from . import test_page
|
|
from . import test_page_manager
|
|
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_unsplash_beacon
|
|
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
|