[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) {
|
add: function (sc) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.dataset.create(sc, function (out) {
|
this.dataset.create(sc).then(function(out){
|
||||||
self.trigger('display', {
|
self.trigger('load');
|
||||||
name : sc.name,
|
|
||||||
id : out.result,
|
|
||||||
res_id : sc.res_id
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
display: function(sc) {
|
display: function(sc) {
|
||||||
|
|
Loading…
Reference in New Issue