summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-02-20 15:24:18 +0100
committerDenis Ledoux <dle@odoo.com>2015-02-20 15:36:47 +0100
commit27a48f8026f824f62955d5bf2a83b2799ad98db1 (patch)
treec4484aa655f87baa840a1a565f6ed5865fe40f0d /addons/analytic_user_function/analytic_user_function_view.xml
parent7f5bc3fdf0a5d40bcaec8f5170e04a8191a95499 (diff)
[FIX] web: action translation (menuitems & more menu)
This rev. reverts partially 1d76586a1b0fff766581871cd277332bbfec030a This rev. is related to #3462 Regarding addons/web/controllers/main.py --- name of model ir.actions.actions is not translated it's the name of server actions, client actions and window actions that are translated. Meaning the name of the ir.actions.actions will always be in English, even when passing the user language within the context. Regarding addons/web/static/src/js/views.js --- There is no reason to pass the field values within the context of the /web/action/load call: The read methods of actions are not overidden to use the field values. Besides, it pollutes the context of the action, leading to unwanted behavior, such as the translation of the action name within the lang available in the fields of the form view (e.g. the partner form). Initially, the field values added in the context has been added within the rev. 542928adde6f74269f51d24e18896b2e8bb44fc2 Indeed, sidebar_context (or sidebar_eval_context nowadays), contains the field values, and the additional_context passed to /web/action/load is an extension of this sidebar_context. We are not sure the reasons why the sidebar_context was passed to the /web/action/load, but we believe it was to pass the session/user context containing the lang, timezone, and so on, not to pass the fields values.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions