Chirag Patel (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/7.0-opw-584668-cpa into lp:openerp-web/7.0.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1101070 in OpenERP Web: "context in form definition not being passed"
  https://bugs.launchpad.net/openerp-web/+bug/1101070

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/7.0-opw-584668-cpa/+merge/145363

Hello,

Reproduce Issue: check the related bug #1101070 description.

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/7.0-opw-584668-cpa/+merge/145363
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/7.0-opw-584668-cpa.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2013-01-24 14:40:18 +0000
+++ addons/web/static/src/js/view_form.js	2013-01-29 13:16:33 +0000
@@ -3360,7 +3360,7 @@
         this.form_last_update = $.Deferred();
         this.init_form_last_update = this.form_last_update;
         this.is_started = false;
-        this.dataset = new instance.web.form.One2ManyDataSet(this, this.field.relation);
+        this.dataset = new instance.web.form.One2ManyDataSet(this, this.field.relation, this.build_context());
         this.dataset.o2m = this;
         this.dataset.parent_view = this.view;
         this.dataset.child_name = this.name;
@@ -4108,7 +4108,7 @@
     init: function(field_manager, node) {
         this._super(field_manager, node);
         this.is_loaded = $.Deferred();
-        this.dataset = new instance.web.form.Many2ManyDataSet(this, this.field.relation);
+        this.dataset = new instance.web.form.Many2ManyDataSet(this, this.field.relation, this.build_context());
         this.dataset.m2m = this;
         var self = this;
         this.dataset.on('unlink', self, function(ids) {

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to