Antony Lesuisse (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-deferred-call into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-deferred-call/+merge/128252
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-deferred-call/+merge/128252
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-deferred-call.
=== modified file 'google_docs/static/src/js/gdocs.js'
--- google_docs/static/src/js/gdocs.js 2012-09-26 14:08:02 +0000
+++ google_docs/static/src/js/gdocs.js 2012-10-05 13:56:42 +0000
@@ -22,7 +22,7 @@
var form = self.getParent();
form.sidebar_context().then(function (context) {
var ds = new instance.web.DataSet(this, 'ir.attachment', context);
- ds.call('google_doc_get', [form.dataset.model, [form.datarecord.id], context], function(r) {
+ ds.call('google_doc_get', [form.dataset.model, [form.datarecord.id], context]).then(function(r) {
if (r == 'False') {
var params = {
error: response,
@@ -35,7 +35,7 @@
}
form.reload();
});
- })
+ });
}
- })
-}
+ });
+};
=== modified file 'process/static/src/js/process.js'
--- process/static/src/js/process.js 2012-09-13 09:39:21 +0000
+++ process/static/src/js/process.js 2012-10-05 13:56:42 +0000
@@ -217,8 +217,7 @@
var dataset = new instance.web.DataSet(this, 'ir.values', this.session.user_context);
var action_manager = new instance.web.ActionManager(self);
dataset.call('get',
- ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context],
- function(res) {
+ ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context]).then(function(res) {
var action = res[0][res[0].length - 1];
self.rpc("/web/action/load", {
action_id: action.id,
=== modified file 'share/static/src/js/share.js'
--- share/static/src/js/share.js 2012-08-24 18:27:43 +0000
+++ share/static/src/js/share.js 2012-10-05 13:56:42 +0000
@@ -24,9 +24,8 @@
user_type: user_type || 'embedded',
view_type: view.fields_view.type,
invite: invite || false,
- }, function(result) {
- var share_id = result.result;
- var step1 = Share.call('go_step_1', [[share_id],], function(result) {
+ }).then(function(share_id) {
+ var step1 = Share.call('go_step_1', [[share_id]]).then(function(result) {
var action = result;
self.do_action(action);
});
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp