~numerigraphe-team/openobject-server/7.0-fix-po-targets-933496-vmt

« back to all changes in this revision

Viewing changes to openerp/addons/base/static/src/js/apps.js

  • Committer: Christophe Simonis
  • Date: 2014-04-10 09:58:17 UTC
  • mfrom: (4847.1.1 7.0-bug-1129299-chs)
  • Revision ID: chs@openerp.com-20140410095817-bkni63g346wneybb
[FIX] modules: install_from_urls: restrict to administrators. Urls must come from apps server.
[FIX] modules: download() method is now a no-op. This method was in fact already a no-op as the "url" field is never set explicitly in the code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
            if (instance.base.apps_client) {
64
64
                return check_client_available(instance.base.apps_client);
65
65
            } else {
66
 
                var ICP = new instance.web.Model('ir.config_parameter');
67
 
                return ICP.call('get_param', ['apps.server', 'https://apps.openerp.com/apps']).then(function(u) {
 
66
                var Mod = new instance.web.Model('ir.module.module');
 
67
                return Mod.call('get_apps_server').then(function(u) {
68
68
                    var link = $(_.str.sprintf('<a href="%s"></a>', u))[0];
69
69
                    var host = _.str.sprintf('%s//%s', link.protocol, link.host);
70
70
                    var dbname = link.pathname;