[FIX]7.0 bookmark module - not working correctly
authorDenis Ledoux dle@openerp.com <>
Thu, 15 Nov 2012 14:44:55 +0000 (15:44 +0100)
committerDenis Ledoux dle@openerp.com <>
Thu, 15 Nov 2012 14:44:55 +0000 (15:44 +0100)
lp bug: https://launchpad.net/bugs/1077138 fixed

bzr revid: dle@openerp.com-20121115144455-gdpss6sp4ul5zut3

addons/web_shortcuts/static/src/js/web_shortcuts.js

index e7cbbac..583069c 100644 (file)
@@ -54,7 +54,7 @@ instance.web_shortcuts.Shortcuts = instance.web.Widget.extend({
     },
     add: function (sc) {
         var self = this;
-        this.dataset.create(sc, function (out) {
+        this.dataset.create(sc).then(function(out){
             self.trigger('display', {
                 name : sc.name,
                 id : out.result,