Skip to content

Commit

Permalink
Merge pull request OCA#485 from hbrunn/8.0-web_x2m_filter
Browse files Browse the repository at this point in the history
[FIX] spurious dirty flag
  • Loading branch information
pedrobaeza authored Dec 27, 2016
2 parents 57288da + bdb3b58 commit a3e22e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web_x2m_filter/static/src/js/web_x2m_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ openerp.web_x2m_filter = function(instance)
).all()
.then(function(records)
{
var original = o2m._inhibit_on_change_flag;
o2m._inhibit_on_change_flag = true;
o2m.dataset.alter_ids(_.map(records, function(x) {
return x.id;
}));
o2m._inhibit_on_change_flag = original;
});
};
instance.web.form.FieldOne2Many.include({
Expand Down

0 comments on commit a3e22e6

Please sign in to comment.