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...
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' web/static/ src/js/ view_form. js 2013-04-09 12:28:52 +0000 web/static/ src/js/ view_form. js 2013-04-10 08:00:04 +0000
this. form_last_ update = $.Deferred();
this. init_form_ last_update = this.form_ last_update;
this. is_started = false; web.form. One2ManyDataSet (this, this.field. relation) ; 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;
--- addons/
+++ addons/
@@ -3472,7 +3472,7 @@
- this.dataset = new instance.
+ this.dataset = new instance.
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...