[MERGE] OPW 586534: share: proper context passing when opening Share wizard, so action labels are translated too

+ use the same context everywhere

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

bzr revid: odo@openerp.com-20130606173158-msgs918p332a2jem
This commit is contained in:
Olivier Dony 2013-06-06 19:31:58 +02:00
commit b4f49dbdf7
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ openerp.share = function(session) {
else rec_name = '';
session.web.pyeval.eval_domains_and_contexts({
domains: [domain],
contexts: [view.dataset.context]
contexts: [Share.get_context()]
}).done(function (result) {
Share.create({
name: action.name,
@ -25,7 +25,7 @@ openerp.share = function(session) {
view_type: view.fields_view.type,
invite: invite || false,
}).done(function(share_id) {
var step1 = Share.call('go_step_1', [[share_id]]).done(function(result) {
var step1 = Share.call('go_step_1', [[share_id], Share.get_context()]).done(function(result) {
var action = result;
self.do_action(action);
});