[FIX] return the action

bzr revid: api@openerp.com-20130531090634-4o6wegyqmdoct9vm
This commit is contained in:
Arnaud Pineux
2013-05-31 11:06:34 +02:00
parent 5d6379bc62
commit ae4ed0be36
@@ -22,7 +22,9 @@ openerp.purchase_requisition = function(instance) {
},
generate_purchase_order: function () {
var self = this;
new instance.web.Model(self.dataset.model).call("generate_po",[self.dataset.context.active_id,self.dataset.context]);
new instance.web.Model(self.dataset.model).call("generate_po",[self.dataset.context.active_id,self.dataset.context]).then(function(result) {
self.do_action(result);
});
},
});
}