Christophe (OpenERP) has proposed merging
lp:~openerp-dev/openerp-web/trunk-client_action_from_url-chs into
lp:openerp-web.
Requested reviews:
OpenERP R&D Web Team (openerp-dev-web)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-client_action_from_url-chs/+merge/110368
--
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-client_action_from_url-chs/+merge/110368
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/trunk-client_action_from_url-chs.
=== modified file 'addons/web/static/src/js/views.js'
--- addons/web/static/src/js/views.js 2012-06-14 13:48:19 +0000
+++ addons/web/static/src/js/views.js 2012-06-14 16:44:19 +0000
@@ -77,7 +77,14 @@
});
} else if (state.client_action) {
this.null_action();
- this.ir_actions_client(state.client_action);
+ var action = state.client_action;
+ if(_.isString(action)) {
+ action = {
+ tag: action,
+ params: $.deparam($.param.querystring()),
+ };
+ }
+ this.ir_actions_client(action);
}
$.when(action_loaded || null).then(function() {
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp