[MERGE]trunk-bug-1077138-dle fix web shortcut
bzr revid: dle@openerp.com-20121115171413-18n22483nungxqda
This commit is contained in:
commit
a7c62c72ee
|
@ -54,12 +54,8 @@ instance.web_shortcuts.Shortcuts = instance.web.Widget.extend({
|
|||
},
|
||||
add: function (sc) {
|
||||
var self = this;
|
||||
this.dataset.create(sc, function (out) {
|
||||
self.trigger('display', {
|
||||
name : sc.name,
|
||||
id : out.result,
|
||||
res_id : sc.res_id
|
||||
});
|
||||
this.dataset.create(sc).then(function(out){
|
||||
self.trigger('load');
|
||||
});
|
||||
},
|
||||
display: function(sc) {
|
||||
|
|
Loading…
Reference in New Issue