Browse Source

[FIX] spurious dirty flag

pull/485/head
Holger Brunn 8 years ago
parent
commit
bdb3b582a4
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  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