[FIX]Fixed the issue of context not passed call, due to which view strings are not translated.
bzr revid: msh@openerp.com-20130306055441-uraju3iwod8yqg6t
This commit is contained in:
parent
f8b102cf87
commit
a737b154b3
|
@ -16,7 +16,7 @@ openerp.share = function(session) {
|
|||
domains: [domain],
|
||||
contexts: [view.dataset.context]
|
||||
}).done(function (result) {
|
||||
Share.create({
|
||||
$.when(Share.create({
|
||||
name: action.name,
|
||||
record_name: rec_name,
|
||||
domain: result.domain,
|
||||
|
@ -24,8 +24,8 @@ openerp.share = function(session) {
|
|||
user_type: user_type || 'embedded',
|
||||
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) {
|
||||
})).then(function(share_id) {
|
||||
var step1 = Share.call('go_step_1', [[share_id], result.context]).done(function(result) {
|
||||
var action = result;
|
||||
self.do_action(action);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue