Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-573631-msh into
lp:openobject-addons/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-573631-msh/+merge/102099
Hello,
Fixed the issue of context not passed in share from sidebar.
Here we have web-addons share in which we have added a share link in sidebar
and launch wizard by calling the "go_step_1" method but here we have forgot to
pass context, due to this the string of wizard title never comes language
specific.
Hence changed the code.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-573631-msh/+merge/102099
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-573631-msh.
=== modified file 'share/static/src/js/share.js'
--- share/static/src/js/share.js 2011-12-27 20:36:18 +0000
+++ share/static/src/js/share.js 2012-04-16 12:48:19 +0000
@@ -11,16 +11,16 @@
self.rpc('/web/session/eval_domain_and_context', {
domains: [domain],
contexts: [view.dataset.context]
- }, function (result) {
+ }, function (results) {
Share.create({
name: action.name,
- domain: result.domain,
+ domain: results.domain,
action_id: action.id,
user_type: user_type || 'embedded',
view_type: view.fields_view.type,
}, function(result) {
var share_id = result.result;
- var step1 = Share.call('go_step_1', [[share_id],], function(result) {
+ var step1 = Share.call('go_step_1', [[share_id], results.context], 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