[FIX] Translation missing on translation form button.

bzr revid: cpa@tinyerp.com-20120508111915-39f9xytufedlmg55
This commit is contained in:
cpa-openerp
2012-05-08 16:49:15 +05:30
parent 48f43ae5a4
commit 7e1c79dc75
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ openerp.web.Dialog = openerp.web.OldWidget.extend(/** @lends openerp.web.Dialog#
};
for (var f in this) {
if (f.substr(0, 10) == 'on_button_') {
this.dialog_options.buttons[f.substr(10)] = this[f];
this.dialog_options.buttons[_t(f.substr(10))] = this[f];
}
}
if (options) {
-2
View File
@@ -962,8 +962,6 @@ session.web.TranslateDialog = session.web.Dialog.extend({
// TODO fme: should add the language to fields_view_get because between the fields view get
// and the moment the user opens the translation dialog, the user language could have been changed
this.view_language = view.session.user_context.lang;
this['on_button' + _t("Save")] = this.on_button_Save;
this['on_button' + _t("Close")] = this.on_button_Close;
this._super(view, {
width: '80%',
height: '80%'