Merge pull request #485 from hbrunn/8.0-web_x2m_filter

[FIX] spurious dirty flag
pull/519/head
Pedro M. Baeza 2016-12-27 09:27:23 +01:00 committed by GitHub
commit a3e22e6055
1 changed files with 3 additions and 0 deletions

View File

@ -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({