[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:
niv-openerp 2011-10-12 10:58:52 +02:00
parent 2e9c6392ea
commit 12e97f3e8e
1 changed files with 1 additions and 0 deletions

View File

@ -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;});