Comment 5 for bug 1088842

Revision history for this message
Tanel Külaots (mou) wrote :

Hello,

even after revision 3850 this bug is still there so unfortunately it's not a duplicate.
I managed to "fix" it like that:

=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2013-04-09 12:28:52 +0000
+++ addons/web/static/src/js/view_form.js 2013-04-10 08:00:04 +0000
@@ -3472,7 +3472,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;

It's probably not correct nor suffiecent, but at least makes my code run. Someone with more understanding of this javascript mess should probably tell me why it's wrong to do it this way...