[FIX] return the action
bzr revid: api@openerp.com-20130531090634-4o6wegyqmdoct9vm
This commit is contained in:
@@ -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);
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user