[FIX] web: one2many set_value must use dataset last_default_get as default values
This commit is contained in:
parent
0ba248aeda
commit
1cd03ed7fe
|
@ -4243,7 +4243,7 @@ instance.web.form.FieldOne2Many = instance.web.form.AbstractField.extend({
|
|||
switch (command[0]) {
|
||||
case commands.CREATE:
|
||||
obj['id'] = _.uniqueId(self.dataset.virtual_id_prefix);
|
||||
obj.defaults = {};
|
||||
obj.defaults = self.dataset.last_default_get;
|
||||
self.dataset.to_create.push(obj);
|
||||
self.dataset.cache.push(_.extend(_.clone(obj), {values: _.clone(command[2])}));
|
||||
ids.push(obj.id);
|
||||
|
|
Loading…
Reference in New Issue