diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-09-12 18:53:48 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-09-12 18:53:48 +0200 |
| commit | 56f2b7ae0f8c958ef78da7cf466e7908abcd29c6 (patch) | |
| tree | d4e87cd25cea80059723fd61a72b3c4eaf86841a /addons/web/static/src/js | |
| parent | d3ba8a840d986a224281a2844ccabcbc8c41ffd4 (diff) | |
| parent | fdc62713a5ac7a4f084a911311150fc6b9fe4a21 (diff) | |
[MERGE] forward port of branch saas-3 up to fdc6271
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 6 | ||||
| -rw-r--r-- | addons/web/static/src/js/data.js | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 197bd4a4ffc..f9658792110 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1008,7 +1008,7 @@ instance.web.UserMenu = instance.web.Widget.extend({ this.update_promise = this.update_promise.then(fct, fct); }, on_menu_help: function() { - window.open('http://help.openerp.com', '_blank'); + window.open('http://help.odoo.com', '_blank'); }, on_menu_logout: function() { this.trigger('user_logout'); @@ -1037,10 +1037,10 @@ instance.web.UserMenu = instance.web.Widget.extend({ state: JSON.stringify(state), scope: 'userinfo', }; - instance.web.redirect('https://accounts.openerp.com/oauth2/auth?'+$.param(params)); + instance.web.redirect('https://accounts.odoo.com/oauth2/auth?'+$.param(params)); }).fail(function(result, ev){ ev.preventDefault(); - instance.web.redirect('https://accounts.openerp.com/web'); + instance.web.redirect('https://accounts.odoo.com/web'); }); } }, diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index 6819634655d..8c7ee8ac030 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -946,6 +946,8 @@ instance.web.BufferedDataSet = instance.web.DataSetStatic.extend({ sign = -1; field = field.slice(1); } + if(!a[field] && a[field] !== 0){ return sign} + if(!b[field] && b[field] !== 0){ return (sign == -1) ? 1 : -1} //m2o should be searched based on value[1] not based whole value(i.e. [id, value]) if(_.isArray(a[field]) && a[field].length == 2 && _.isString(a[field][1])){ return sign * compare(a[field][1], b[field][1]); |
