[FIX] web: properly transfer options to SelectCreateDialog

The fields_view option was not transferred, resulting in the wrong form
view opened when trying to create a sub record.
This commit is contained in:
Christophe Matthieu
2017-04-11 19:44:38 +02:00
committed by Aaron Bohy
parent 7a1d7cb241
commit cac00211fe
@@ -863,6 +863,7 @@ var FieldMany2Many = FieldX2Many.extend({
context: this.record.getContext({fieldName: this.name}),
title: _t("Add: ") + this.string,
no_create: this.nodeOptions.no_create || !this.activeActions.create,
fields_view: this.field.views.form,
on_selected: function (res_ids) {
var new_ids = _.difference(res_ids, self.value.res_ids);
if (new_ids.length) {