Browse Source

Merge pull request #485 from hbrunn/8.0-web_x2m_filter

[FIX] spurious dirty flag
pull/519/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
a3e22e6055
  1. 3
      web_x2m_filter/static/src/js/web_x2m_filter.js

3
web_x2m_filter/static/src/js/web_x2m_filter.js

@ -49,9 +49,12 @@ openerp.web_x2m_filter = function(instance)
).all() ).all()
.then(function(records) .then(function(records)
{ {
var original = o2m._inhibit_on_change_flag;
o2m._inhibit_on_change_flag = true;
o2m.dataset.alter_ids(_.map(records, function(x) { o2m.dataset.alter_ids(_.map(records, function(x) {
return x.id; return x.id;
})); }));
o2m._inhibit_on_change_flag = original;
}); });
}; };
instance.web.form.FieldOne2Many.include({ instance.web.form.FieldOne2Many.include({

Loading…
Cancel
Save