diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-12-15 11:40:31 +0100 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-12-15 11:40:31 +0100 |
| commit | 187216f8bdd055bc2dd3cdfa79245c8a2fbd754e (patch) | |
| tree | 5dc8f89f72ac46b7c06b1c7048e1cae0ffbb2a91 /addons/web_process/static | |
| parent | 334ed410ccad2d5a9a6fed3b87d6a28824e84a10 (diff) | |
[IMP] mark a bunch of dialog stuff as exportable (mostly buttons, but also dialog titles)
bzr revid: xmo@openerp.com-20111215104031-zy56xwtb7cjwzcbj
Diffstat (limited to 'addons/web_process/static')
| -rw-r--r-- | addons/web_process/static/src/js/process.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/addons/web_process/static/src/js/process.js b/addons/web_process/static/src/js/process.js index 9bf814aa4f4..e650530a914 100644 --- a/addons/web_process/static/src/js/process.js +++ b/addons/web_process/static/src/js/process.js @@ -1,5 +1,6 @@ openerp.web_process = function (openerp) { - var QWeb = openerp.web.qweb; + var QWeb = openerp.web.qweb, + _t = openerp.web._t; openerp.web.ViewManager.include({ start: function() { this._super(); @@ -275,19 +276,17 @@ openerp.web_process = function (openerp) { var dialog = new openerp.web.Dialog(this, { width: 800, height: 600, - buttons : { - Cancel : function() { - $(this).dialog('destroy'); - }, - Save : function() { + buttons : [ + {text: _t("Cancel"), click: function() { $(this).dialog('destroy'); }}, + {text: _t("Save"), click: function() { var form_view = action_manager.inner_viewmanager.views.form.controller; form_view.do_save(function() { self.initialize_process_view(); }); $(this).dialog('destroy'); - } - } + }} + ] }).start().open(); action_manager.appendTo(dialog.$element); |
