[FIX] Issue with result.result in POS.

lp bug: https://launchpad.net/bugs/1066288 fixed

bzr revid: vta@openerp.com-20121109133045-z7w5i49eikobyskw
This commit is contained in:
vta vta@openerp.com 2012-11-09 14:30:45 +01:00
commit 0a7d680313
1 changed files with 2 additions and 1 deletions

View File

@ -1051,7 +1051,8 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa
this.pos.barcode_reader.disconnect();
return new instance.web.Model("ir.model.data").get_func("search_read")([['name', '=', 'action_client_pos_menu']], ['res_id']).pipe(
_.bind(function(res) {
return this.rpc('/web/action/load', {'action_id': res[0]['res_id']}).pipe(_.bind(function(action) {
return this.rpc('/web/action/load', {'action_id': res[0]['res_id']}).pipe(_.bind(function(result) {
var action = result;
action.context = _.extend(action.context || {}, {'cancel_action': {type: 'ir.actions.client', tag: 'reload'}});
//self.destroy();
this.do_action(action);