[FIX] base: translation window

DO NOT FORWARD-PORT TO MASTER

When the user wants to edit the translation of a view, a JS traceback
appears. The reason is that the `WebClient.DebugManager.View` tries to
access `view.controller.fields_view.view_id` before the fields_view_get
is actually resolved.

The issue is that the DebugManager is loaded when the dialog is opened.
However, the dialog is opened before its content is actually loaded. The
proper fix would be to open the dialog only when the content is ready.
Since this might imply side effects, this fix will be done in master
branch, not in the stable saas-7.

The workaround is to open the translation window in the current window,
not in a dialog window.

opw-669140
This commit is contained in:
Nicolas Martinelli
2016-02-17 15:28:12 +01:00
parent a7f5a89407
commit 6999a862fd
+1 -1
View File
@@ -660,7 +660,7 @@ class ir_translation(osv.osv):
'type': 'ir.actions.act_window',
'view_mode': 'tree',
'view_id': self.env.ref('base.view_translation_dialog_tree').id,
'target': 'new',
'target': 'current',
'flags': {'search_view': True, 'action_buttons': True},
'domain': domain,
}