3
0
Fork 0

[FIX] pass current context to create popup

8.0
Holger Brunn 2016-03-18 13:33:01 +01:00
parent 1249a2ba6e
commit b6438d75cc
1 changed files with 2 additions and 2 deletions

View File

@ -22,10 +22,10 @@ openerp.web_widget_one2many_tags = function(instance)
result.ext.arrow = { result.ext.arrow = {
onArrowClick: function(e) onArrowClick: function(e)
{ {
var context = {}, var context = self.build_context(),
key = _.str.sprintf( key = _.str.sprintf(
'default_%s', self.field.relation_field) 'default_%s', self.field.relation_field)
context[key] = self.field_manager.datarecord.id; context.add({[key]: self.field_manager.datarecord.id});
self._search_create_popup('form', undefined, context); self._search_create_popup('form', undefined, context);
}, },
} }