[fix] problem with get_value() on o2m when it is called without calling is_dirty() first.
bzr revid: nicolas.vanhoren@openerp.com-20111012085852-6tcqn1rmn00qoaqy
This commit is contained in:
parent
2e9c6392ea
commit
12e97f3e8e
|
@ -2003,6 +2003,7 @@ openerp.web.form.FieldOne2Many = openerp.web.form.Field.extend({
|
|||
var self = this;
|
||||
if (!this.dataset)
|
||||
return [];
|
||||
this.save_form_view();
|
||||
var val = this.dataset.delete_all ? [commands.delete_all()] : [];
|
||||
val = val.concat(_.map(this.dataset.ids, function(id) {
|
||||
var alter_order = _.detect(self.dataset.to_create, function(x) {return x.id === id;});
|
||||
|
|
Loading…
Reference in New Issue