[FIX] web: destroy internal m2o on m2m tag field re-render

This commit is contained in:
qsm-odoo
2017-04-11 19:44:38 +02:00
committed by Aaron Bohy
parent 92f24f2cfe
commit cce579434b
@@ -999,6 +999,9 @@ var FieldMany2ManyTags = AbstractRelationalField.extend({
_renderEdit: function () {
var self = this;
this._renderTags();
if (this.many2one) {
this.many2one.destroy();
}
this.many2one = new FieldMany2One(this, this.name, this.record, {
idForLabel: this.idForLabel,
mode: 'edit',